summaryrefslogtreecommitdiffstats
path: root/source3/smbd/dosmode.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-31 16:32:48 -0700
committerJeremy Allison <jra@samba.org>2007-10-31 16:32:48 -0700
commit0bb1a6ec2d963c2001230142692de8335c540434 (patch)
tree4bc7eb5bb0e086ded41065a414a69f7d733ef412 /source3/smbd/dosmode.c
parent8f1f2f04c796a8659d93bafadefca4a98fee00f0 (diff)
downloadsamba-0bb1a6ec2d963c2001230142692de8335c540434.tar.gz
samba-0bb1a6ec2d963c2001230142692de8335c540434.tar.xz
samba-0bb1a6ec2d963c2001230142692de8335c540434.zip
Note when we're setting change time, not write time, and send
message accordingly. Apart from not supporting create time we now pass the S4 RAW-NOTIFY torture. Jeremy. (This used to be commit 8a77f520fa03afa60eac2aaeab4babe7dd8db4f0)
Diffstat (limited to 'source3/smbd/dosmode.c')
-rw-r--r--source3/smbd/dosmode.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index 18e6439be4..8e3c9b4c91 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -591,7 +591,7 @@ int file_ntimes(connection_struct *conn, const char *fname, const struct timespe
return ret;
}
-
+
/*******************************************************************
Change a filetime - possibly allowing DOS semantics.
*******************************************************************/
@@ -609,12 +609,13 @@ bool set_filetime(connection_struct *conn, const char *fname,
ts[0] = ts[1]; /* atime. */
if (file_ntimes(conn, fname, ts)) {
- DEBUG(4,("set_filetime(%s) failed: %s\n",fname,strerror(errno)));
+ DEBUG(4,("set_filetime(%s) failed: %s\n",
+ fname,strerror(errno)));
return False;
}
notify_fname(conn, NOTIFY_ACTION_MODIFIED,
- FILE_NOTIFY_CHANGE_LAST_WRITE, fname);
-
- return True;
+ FILE_NOTIFY_CHANGE_LAST_WRITE, fname);
+
+ return true;
}