projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
samba36: fix segmentation fault when trying to add non-existent users
[openwrt.git]
/
package
/
network
/
services
/
samba36
/
patches
/
111-owrt_smbpasswd.patch
diff --git
a/package/network/services/samba36/patches/111-owrt_smbpasswd.patch
b/package/network/services/samba36/patches/111-owrt_smbpasswd.patch
index
25a9cb9
..
7d852c4
100644
(file)
--- a/
package/network/services/samba36/patches/111-owrt_smbpasswd.patch
+++ b/
package/network/services/samba36/patches/111-owrt_smbpasswd.patch
@@
-113,7
+113,7
@@
+ }
+
+ if (!find_passwd_line(fp, user, &p1)) {
-+ printf("User %s not found or invalid in /etc/passwd\n");
++ printf("User %s not found or invalid in /etc/passwd\n"
, user
);
+ goto out;
+ }
+