svn commit: samba r11560 - in branches/SAMBA_3_0/source/lib: .
jra at samba.org
jra at samba.org
Mon Nov 7 19:18:01 GMT 2005
Author: jra
Date: 2005-11-07 19:18:00 +0000 (Mon, 07 Nov 2005)
New Revision: 11560
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11560
Log:
Fix core dump if setmntent returns NULL.
Pointed out by Jay Fanlason @ Red Hat.
Jeremy.
Modified:
branches/SAMBA_3_0/source/lib/sysquotas.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/sysquotas.c
===================================================================
--- branches/SAMBA_3_0/source/lib/sysquotas.c 2005-11-07 19:17:58 UTC (rev 11559)
+++ branches/SAMBA_3_0/source/lib/sysquotas.c 2005-11-07 19:18:00 UTC (rev 11560)
@@ -67,6 +67,9 @@
devno = S.st_dev ;
fp = setmntent(MOUNTED,"r");
+ if (fp == NULL) {
+ return -1;
+ }
while ((mnt = getmntent(fp))) {
if ( sys_stat(mnt->mnt_dir,&S) == -1 )
More information about the samba-cvs
mailing list