summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-08-21 19:59:23 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-08-21 19:59:23 +0000
commitd3aa76cef528a15571cade12ebdd10973f4ca579 (patch)
treebf5d26005dc4f8c88d58532c3aa1728c36edf01b /source3/libsmb
parent30e51241ecdda2724c441e372e6f99857719630f (diff)
downloadsamba-d3aa76cef528a15571cade12ebdd10973f4ca579.tar.gz
samba-d3aa76cef528a15571cade12ebdd10973f4ca579.tar.bz2
samba-d3aa76cef528a15571cade12ebdd10973f4ca579.zip
Patch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatible
(This used to be commit addf29e6765393b25c35bd833d29e29e4581c233)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clifile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index a47c956a55..07b1ff6b6f 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -94,7 +94,7 @@ uint32 unix_perms_to_wire(mode_t perms)
ret |= ((perms & S_ISGID) ? UNIX_SET_GID : 0);
#endif
#ifdef S_ISUID
- ret |= ((perms & S_ISVTX) ? UNIX_SET_UID : 0);
+ ret |= ((perms & S_ISUID) ? UNIX_SET_UID : 0);
#endif
return ret;
}