summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
129cb39)
usr/libexec
usr/local
usr/man
usr/libexec
usr/local
usr/man
usr/sbin
usr/share
usr/sieve
usr/sbin
usr/share
usr/sieve
* cyrus-imapd-2.2.12
* cyrus-sasl-2.1.21
* db-4.4.20
* cyrus-imapd-2.2.12
* cyrus-sasl-2.1.21
* db-4.4.20
* dhcp-3.0.4
* dhcpcd-2.0.8
* diffutils-2.8.1
* dhcp-3.0.4
* dhcpcd-2.0.8
* diffutils-2.8.1
* groff-1.18.1.1
* grub-0.97
* gzip-1.3.5
* groff-1.18.1.1
* grub-0.97
* gzip-1.3.5
* hddtemp-0.3-beta14
* hdparm-6.6
* htop-0.6.2
* httpd-2.2.2
* hwdata-0.191
* hddtemp-0.3-beta14
* hdparm-6.6
* htop-0.6.2
* httpd-2.2.2
* hwdata-0.191
* iana-etc-2.10
* ibod
* iftop-0.17
* iana-etc-2.10
* ibod
* iftop-0.17
* ipp2p-0.8.2-iptables
* iproute2-2.6.16-060323
* iptables-1.3.5
* ipp2p-0.8.2-iptables
* iproute2-2.6.16-060323
* iptables-1.3.5
* iptstate-2.1
* iputils-ss020927
* isapnptools-1.26
* iptstate-2.1
* iputils-ss020927
* isapnptools-1.26
* mpg123-0.59r
* mtools-3.9.10
* mysql-5.0.24a
* mpg123-0.59r
* mtools-3.9.10
* mysql-5.0.24a
* nano-1.2.5
* nash
* nasm-0.98.39
* nano-1.2.5
* nash
* nasm-0.98.39
ifeq "$(LFS_PASS)" "install"
cd $(DIR_APP) && ./configure --prefix=""
cd $(DIR_APP)/src && patch < $(DIR_SRC)/src/patches/slang-$(VER)-uclibc.patch
ifeq "$(LFS_PASS)" "install"
cd $(DIR_APP) && ./configure --prefix=""
cd $(DIR_APP)/src && patch < $(DIR_SRC)/src/patches/slang-$(VER)-uclibc.patch
- cd $(DIR_APP)/src && make $(MAKETUNING)
+ cd $(DIR_APP)/src && make
cd $(DIR_APP)/src && make install DESTDIR="/opt/$(MACHINE)-uClibc"
else
cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP)/src && make install DESTDIR="/opt/$(MACHINE)-uClibc"
else
cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
cd $(DIR_APP) && make $(MAKETUNING)
- cd $(DIR_APP) && make elf $(MAKETUNING)
+ cd $(DIR_APP) && make elf
cd $(DIR_APP) && make install-elf
cd $(DIR_APP) && chmod -v 755 /usr/lib/libslang.so.2.0.6
endif
cd $(DIR_APP) && make install-elf
cd $(DIR_APP) && chmod -v 755 /usr/lib/libslang.so.2.0.6
endif
# Setup environment
set +h
LC_ALL=POSIX
# Setup environment
set +h
LC_ALL=POSIX
export LFS LC_ALL CFLAGS CXXFLAGS MAKETUNING
unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD
export LFS LC_ALL CFLAGS CXXFLAGS MAKETUNING
unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD
#include <fcntl.h>
#include "setuid.h"
#include <fcntl.h>
#include "setuid.h"
+#define BUFFER_SIZE 1024
+
+char command[BUFFER_SIZE];
+
int main(int argc, char *argv[]) {
if (!(initsetuid()))
int main(int argc, char *argv[]) {
if (!(initsetuid()))
fprintf(stderr, "\nNo argument given.\n\nsmartctrl <device>\n\n");
exit(1);
}
fprintf(stderr, "\nNo argument given.\n\nsmartctrl <device>\n\n");
exit(1);
}
- safe_system("smartctl -iHA /dev/%s", argv[1]);
+ sprintf(command, "smartctl -iHA /dev/%s", argv[1]);
+ safe_system(command);