summaryrefslogtreecommitdiff
path: root/source3/smbd/dosmode.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-09 16:12:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:00 -0500
commit46fdae1b6b1b8e3285447193cb10e5a2a444d431 (patch)
tree8fe77aa1bc641d008ab9feec3f11207f83cfb481 /source3/smbd/dosmode.c
parent87bd4d2723e806ac0bc751ccf36fcdb8ed01c03c (diff)
downloadsamba-46fdae1b6b1b8e3285447193cb10e5a2a444d431.tar.gz
samba-46fdae1b6b1b8e3285447193cb10e5a2a444d431.tar.bz2
samba-46fdae1b6b1b8e3285447193cb10e5a2a444d431.zip
r20634: A *LOT* more work is necessary before touching notify remotely starts to make
sense. Until then, remove it from the tree to keep the diff between 3_0_24 and 3_0 small. Volker (This used to be commit f146a85e74c84e78a11e616a1cbeaeef4693a0e0)
Diffstat (limited to 'source3/smbd/dosmode.c')
-rw-r--r--source3/smbd/dosmode.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index a3c46b3275..1172fe3e6b 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -499,11 +499,8 @@ int file_set_dosmode(connection_struct *conn, const char *fname,
unixmode |= (st->st_mode & (S_IWUSR|S_IWGRP|S_IWOTH));
}
- if ((ret = SMB_VFS_CHMOD(conn,fname,unixmode)) == 0) {
- notify_fname(conn, fname, FILE_NOTIFY_CHANGE_ATTRIBUTES,
- NOTIFY_ACTION_MODIFIED);
+ if ((ret = SMB_VFS_CHMOD(conn,fname,unixmode)) == 0)
return 0;
- }
if((errno != EPERM) && (errno != EACCES))
return -1;
@@ -532,8 +529,6 @@ int file_set_dosmode(connection_struct *conn, const char *fname,
ret = SMB_VFS_FCHMOD(fsp, fsp->fh->fd, unixmode);
unbecome_root();
close_file_fchmod(fsp);
- notify_fname(conn, fname, FILE_NOTIFY_CHANGE_ATTRIBUTES,
- NOTIFY_ACTION_MODIFIED);
}
return( ret );
@@ -606,9 +601,6 @@ BOOL set_filetime(connection_struct *conn, const char *fname, time_t mtime)
DEBUG(4,("set_filetime(%s) failed: %s\n",fname,strerror(errno)));
return False;
}
-
- notify_fname(conn, fname, FILE_NOTIFY_CHANGE_LAST_WRITE,
- NOTIFY_ACTION_MODIFIED);
return(True);
}