[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-28-31-gf5476c9

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


The branch, v3-0-test has been updated
       via  f5476c93c73a0757bfa154d8fb360184ed29e00f (commit)
      from  882437445f5bfc89c1b00eb49a14b616e499aa96 (commit)

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


- Log -----------------------------------------------------------------
commit f5476c93c73a0757bfa154d8fb360184ed29e00f
Author: Jeremy Allison <jra at samba.org>
Date:   Thu Dec 13 17:25:28 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 73288db..33da1a2 100755
--- a/source/client/mount.cifs.c
+++ b/source/client/mount.cifs.c
@@ -542,7 +542,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));
 				}
@@ -559,7 +558,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