More smbfs clean-ups
- From: "Andrew V. Samoilov" <andrew email zp ua>
- To: mc-devel gnome org, Pavel Shirshov <me pavelsh pp ru>
- Cc:
- Subject: More smbfs clean-ups
- Date: Mon, 31 Jan 2005 18:38:25 +0200 (EET)
Hello, Pavel!
This patch comments some more unused samba code.
--
Regards,
Andrew V. Samoilov
________________________________________________________________
GET INTERNET ACCESS FROM BCS! http://www.bcs.zp.ua
Join BCS today! For your FREE webmail, visit: http://email.zp.ua/
vfs/ChangeLog:
* samba/lib/username.c (map_username): Comment out.
(user_in_list): Ditto.
--- username.c~ Mon Aug 30 12:09:17 2004
+++ username.c Mon Jan 31 18:26:00 2005
@@ -40,6 +40,7 @@ char *get_home_dir(char *user)
}
+#if 0 /* Fix possible buffer overflow in sscanf(unixname,"%s",user) if uncomment */
/*******************************************************************
map a username from a dos name to a unix name by looking in the username
map. Note that this modifies the name in place.
@@ -142,6 +143,7 @@ BOOL map_username(char *user)
return mapped_user;
}
+#endif /* 0 */
/****************************************************************************
Get_Pwnam wrapper
@@ -226,6 +228,7 @@ struct passwd *Get_Pwnam(char *user,BOOL
return(NULL);
}
+#if 0
/****************************************************************************
check if a user is in a netgroup user list
****************************************************************************/
@@ -366,6 +369,7 @@ BOOL user_in_list(char *user,char *list)
}
return(False);
}
+#endif /* 0 */
/* The functions below have been taken from password.c and slightly modified */
/****************************************************************************
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]