Fix bug #7080 - Quota only shown when logged as root.
commitb3009819c55043aca81d5b53c805696dd4c88aac
authorJeremy Allison <jra@samba.org>
Mon, 1 Feb 2010 23:55:55 +0000 (1 15:55 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 1 Feb 2010 23:55:55 +0000 (1 15:55 -0800)
tree3cc7055efca31ef97029d8dd9b0502a6f04d5c28
parent431d75fc9c7f942dcbd31f80380dda59887ac229
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