smbcacls printf patch

Ronan Waide waider at waider.ie
Wed Apr 9 12:09:30 GMT 2003


Minor detail. the function that prints out acls uses printf in two
places and fprintf(f,...) elsewhere. this replaces the printfs.

Cheers,
Waider.

Index: utils/smbcacls.c
===================================================================
RCS file: /cvsroot/samba/source/utils/smbcacls.c,v
retrieving revision 1.86
diff -u -r1.86 smbcacls.c
--- utils/smbcacls.c    24 Mar 2003 14:15:14 -0000      1.86
+++ utils/smbcacls.c    9 Apr 2003 12:08:14 -0000
@@ -406,7 +406,7 @@
        fstring sidstr;
        uint32 i;
 
-       printf("REVISION:%d\n", sd->revision);
+       fprintf(f,"REVISION:%d\n", sd->revision);
 
        /* Print owner and group sid */
 
@@ -416,7 +416,7 @@
                fstrcpy(sidstr, "");
        }
 
-       printf("OWNER:%s\n", sidstr);
+       fprintf(f,"OWNER:%s\n", sidstr);
 
        if (sd->grp_sid) {
                SidToString(sidstr, sd->grp_sid);

-- 
waider at waider.ie / Yes, it /is/ very personal of me.

Veep says, "waider would understand."


More information about the samba-technical mailing list