diff options
author | Jeremy Allison <jra@samba.org> | 2004-06-01 04:55:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:51 -0500 |
commit | 6798fd8e3c764f46f9993bb7c986b2454b2aab42 (patch) | |
tree | e307a76a131014d262003597fa4a7a1bf67c2bd0 /source3/smbd | |
parent | e4952bf5903ee65b135f781c4a679aea4eb25974 (diff) | |
download | samba-6798fd8e3c764f46f9993bb7c986b2454b2aab42.tar.gz samba-6798fd8e3c764f46f9993bb7c986b2454b2aab42.tar.bz2 samba-6798fd8e3c764f46f9993bb7c986b2454b2aab42.zip |
r957: Fixup moribund unix extensions mknod code path. Don't add in
configure test yet. Also allow unix domain socket create.
Jeremy.
(This used to be commit 2db0c4ca7b23cdd1dbf83d4de58acbf4dc118df2)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/trans2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 738d12e020..02a6bf6e4b 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -3374,14 +3374,15 @@ size = %.0f, uid = %u, gid = %u, raw perms = 0%o\n", return(ERROR_DOS(ERRDOS,ERRnoaccess)); if (file_type != UNIX_TYPE_CHARDEV && file_type != UNIX_TYPE_BLKDEV && - file_type != UNIX_TYPE_FIFO) + file_type != UNIX_TYPE_FIFO && + file_type != UNIX_TYPE_SOCKET) return(ERROR_DOS(ERRDOS,ERRnoaccess)); DEBUG(10,("call_trans2setfilepathinfo: SMB_SET_FILE_UNIX_BASIC doing mknod dev %.0f mode \ 0%o for file %s\n", (double)dev, unixmode, fname )); /* Ok - do the mknod. */ - if (SMB_VFS_MKNOD(conn,dos_to_unix_static(fname), unixmode, dev) != 0) + if (SMB_VFS_MKNOD(conn,fname, unixmode, dev) != 0) return(UNIXERROR(ERRDOS,ERRnoaccess)); inherit_access_acl(conn, fname, unixmode); |