Volume ID
tridge at samba.org
tridge at samba.org
Mon Jan 15 22:04:29 GMT 2007
Volker,
> Yep. As I would assume that this is not the most popular
> version I thought adding a hex-scanner would be a bit
> overkill.
The following patch would let us accept hex constants for all smb.conf
integers, using a 0x prefix (we've used this in Samba4 for a long
time).
Index: param/loadparm.c
===================================================================
--- param/loadparm.c (revision 20821)
+++ param/loadparm.c (working copy)
@@ -2189,7 +2189,7 @@
return (-1);
}
- return atoi(s);
+ return strtol(s, NULL, 0);
}
/*******************************************************************
More information about the samba-technical
mailing list