Fix bug #7080 - Quota only shown when logged as root.
commitf4e66a7beb33a8971e423dfc8f0026650677e7de
authorJeremy Allison <jra@samba.org>
Mon, 1 Feb 2010 23:55:55 +0000 (1 15:55 -0800)
committerFernando J V da Silva <fernandojvsilva@yahoo.com.br>
Thu, 4 Feb 2010 19:09:55 +0000 (4 17:09 -0200)
tree848f32ad78b1b1c1adcbbf0dd5ed0176a8ce5e22
parent01ef9f522b54b54def708755455b203dd68fee88
Fix bug #7080 - Quota only shown when logged as root.

conn->server_info->utok.uid == 0

isn't the correct check to see if we're root anymore. As rpc_samr_nt.c does,
the correct check is :

geteuid() == sec_initial_uid()

Jeremy.
source3/smbd/fake_file.c