# debian/toybox.links
pushd %{buildroot}
mkdir -p usr/bin usr/sbin sbin
-#cd bin
-#for f in `cat %SOURCE2` ; do ln -s toybox $f ; done
-cd sbin
+cd bin
+for f in `cat %SOURCE2` ; do ln -s toybox $f ; done
+cd ../sbin
for f in `cat %SOURCE3` ; do ln -s ../bin/toybox $f ; done
cd ../usr/bin
for f in `cat %SOURCE4` ; do ln -s ../../bin/toybox $f ; done
%doc LICENSE
%{_datadir}/license/toybox
/bin/toybox
-#/bin/mount
-#/bin/umount
+/bin/mount
+/bin/umount
%manifest toybox.manifest
%files symlinks-klogd
%{_bindir}/dumpleases
%{_sbindir}/udhcpd
%manifest toybox.manifest
-
# CONFIG_MD5SUM_SHA1SUM is not set
# CONFIG_MKNOD is not set
# CONFIG_MKTEMP is not set
-# CONFIG_MOUNT is not set
+CONFIG_MOUNT=y
# CONFIG_PASSWD is not set
# CONFIG_PIDOF is not set
# CONFIG_SEQ is not set
# CONFIG_SYNC is not set
-# CONFIG_UMOUNT is not set
+CONFIG_UMOUNT=y
#
# Other commands
USR2 Release current lease
*/
-
+/***************************************************
+ * Changes Hostory
+ * [OSETOYBOX-37] - Ashwini Kumar 2014.05.19
+ * Function dhcpc_parseoptions(), continued to parse options,
+ * after the 'pad' option without checking for the 'end' option.
+ * which was causing a segfault later.
+ ***************************************************/
#define FOR_udhcpc
#include "toys.h"
#include <linux/filter.h> //FIXME: linux specific. fix for other OS ports
}
while (*optptr != DHCP_OPTION_END) {
- while (*optptr == DHCP_OPTION_PADDING) optptr++;
+ if (*optptr == DHCP_OPTION_PADDING) {
+ optptr++;
+ continue;
+ }
if (*optptr == DHCP_OPTION_OVERLOAD) {
overloaded = optptr[2];
optptr += optptr[1] + 2;