svn commit: samba r12389 - in trunk/source/utils: .
jra at samba.org
jra at samba.org
Tue Dec 20 00:49:50 GMT 2005
Author: jra
Date: 2005-12-20 00:49:48 +0000 (Tue, 20 Dec 2005)
New Revision: 12389
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12389
Log:
Ensure usershare files are 644 not 666.
Jeremy.
Modified:
trunk/source/utils/net_usershare.c
Changeset:
Modified: trunk/source/utils/net_usershare.c
===================================================================
--- trunk/source/utils/net_usershare.c 2005-12-20 00:33:41 UTC (rev 12388)
+++ trunk/source/utils/net_usershare.c 2005-12-20 00:49:48 UTC (rev 12389)
@@ -271,8 +271,8 @@
return -1;
}
- if (fchmod(tmpfd, 0666) == -1) {
- d_printf("net usershare add: failed to fchmod tmp file %s to 0666\n",
+ if (fchmod(tmpfd, 0644) == -1) {
+ d_printf("net usershare add: failed to fchmod tmp file %s to 0644n",
full_path_tmp );
talloc_destroy(ctx);
return -1;
More information about the samba-cvs
mailing list