git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a33f4f0
)
r10888: We've already checked 'CAN_WRITE' so we don't need to do it again.
author
Jeremy Allison
<jra@samba.org>
Tue, 11 Oct 2005 04:28:46 +0000
(
04:28
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:04:55 +0000
(11:04 -0500)
Jeremy.
source/smbd/dosmode.c
patch
|
blob
|
history
diff --git
a/source/smbd/dosmode.c
b/source/smbd/dosmode.c
index 6aee6ba426c597b0639ff401b58126da299e07e4..efbd5f04cb957103f8a3428de5b1af4b945496dd 100644
(file)
--- a/
source/smbd/dosmode.c
+++ b/
source/smbd/dosmode.c
@@
-479,7
+479,7
@@
int file_utime(connection_struct *conn, const char *fname, struct utimbuf *times
*/
/* Check if we have write access. */
- if (
CAN_WRITE(conn) &&
can_write_to_file(conn, fname, &sbuf)) {
+ if (can_write_to_file(conn, fname, &sbuf)) {
/* We are allowed to become root and change the filetime. */
become_root();
ret = SMB_VFS_UTIME(conn,fname, times);