[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-641-g27078d1

Jeremy Allison jra at samba.org
Fri Dec 14 01:26:12 GMT 2007


The branch, v3-2-test has been updated
       via  27078d1292e8588956ae78e4cddb1bcebbe84478 (commit)
      from  7fad5f38ea86ef76dc8e0853926b3248230616be (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 27078d1292e8588956ae78e4cddb1bcebbe84478
Author: Jeremy Allison <jra at samba.org>
Date:   Thu Dec 13 17:25:26 2007 -0800

    We don't need to call endpwent if we never call getpwent.
    Jeremy.

-----------------------------------------------------------------------

Summary of changes:
 source/client/mount.cifs.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c
index c89a477..ec245ed 100644
--- a/source/client/mount.cifs.c
+++ b/source/client/mount.cifs.c
@@ -541,7 +541,6 @@ static int parse_options(char ** optionsp, int * filesys_flags)
 						exit(1);
 					}
 					snprintf(user, sizeof(user), "%u", pw->pw_uid);
-					endpwent();
 				} else {
 					strlcpy(user,value,sizeof(user));
 				}
@@ -558,7 +557,6 @@ static int parse_options(char ** optionsp, int * filesys_flags)
 						exit(1);
 					}
 					snprintf(group, sizeof(group), "%u", gr->gr_gid);
-					endpwent();
 				} else {
 					strlcpy(group,value,sizeof(group));
 				}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list