If we're root we always return true on a writable share.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
return true;
}
+ if (get_current_uid(conn) == (uid_t)0) {
+ /* I'm sorry sir, I didn't know you were root... */
+ return true;
+ }
+
/* Get the parent directory permission mask and owners. */
status = SMB_VFS_PARENT_PATHNAME(conn,
ctx,
ret = false;
goto out;
}
- if (get_current_uid(conn) == (uid_t)0) {
- /* I'm sorry sir, I didn't know you were root... */
- ret = true;
- goto out;
- }
#ifdef S_ISVTX
/* sticky bit means delete only by owner of file or by root or