Browse Source

samba36: fix segmentation fault when trying to add non-existent users

Based on a patch from НКВД. Closes #12962.

Signed-off-by: Jonas Gorski <[email protected]>

SVN-Revision: 35610
Jonas Gorski 12 năm trước cách đây
mục cha
commit
c98b12d911

+ 1 - 1
package/network/services/samba36/Makefile

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=samba
 PKG_VERSION:=3.6.11
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL:=http://ftp.samba.org/pub/samba \
 	http://ftp.samba.org/pub/samba/old-versions

+ 1 - 1
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;
 +	}
 +