diff options
author | Jeremy Allison <jra@samba.org> | 2002-04-19 17:30:27 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-04-19 17:30:27 +0000 |
commit | 65742067e07195048edcee46dae95a58a4a50950 (patch) | |
tree | 4903ca54d0b584ec0c6c20d6033efc5d74ab92a1 /source/smbd/notify_kernel.c | |
parent | 7adcc930ca56bf879b5e73b74bca19ac2353f1c0 (diff) | |
download | samba-65742067e07195048edcee46dae95a58a4a50950.tar.gz samba-65742067e07195048edcee46dae95a58a4a50950.tar.xz samba-65742067e07195048edcee46dae95a58a4a50950.zip |
Fix different args to sys_fcntl without going varargs....
Jeremy.
Diffstat (limited to 'source/smbd/notify_kernel.c')
-rw-r--r-- | source/smbd/notify_kernel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/notify_kernel.c b/source/smbd/notify_kernel.c index e40b91443eb..f4eac38a1b4 100644 --- a/source/smbd/notify_kernel.c +++ b/source/smbd/notify_kernel.c @@ -130,7 +130,7 @@ static void *kernel_register_notify(connection_struct *conn, char *path, uint32 return NULL; } - if (sys_fcntl(fd, F_SETSIG, RT_SIGNAL_NOTIFY) == -1) { + if (sys_fcntl_long(fd, F_SETSIG, RT_SIGNAL_NOTIFY) == -1) { DEBUG(3,("Failed to set signal handler for change notify\n")); return NULL; } @@ -147,7 +147,7 @@ static void *kernel_register_notify(connection_struct *conn, char *path, uint32 if (flags & FILE_NOTIFY_CHANGE_EA) kernel_flags |= DN_ATTRIB; if (flags & FILE_NOTIFY_CHANGE_FILE_NAME) kernel_flags |= DN_RENAME|DN_DELETE; - if (sys_fcntl(fd, F_NOTIFY, kernel_flags) == -1) { + if (sys_fcntl_long(fd, F_NOTIFY, kernel_flags) == -1) { DEBUG(3,("Failed to set async flag for change notify\n")); return NULL; } @@ -168,7 +168,7 @@ static BOOL kernel_notify_available(void) int fd, ret; fd = open("/tmp", O_RDONLY); if (fd == -1) return False; /* uggh! */ - ret = sys_fcntl(fd, F_NOTIFY, 0); + ret = sys_fcntl_long(fd, F_NOTIFY, 0); close(fd); return ret == 0; } |