Skip to content

Commit

Permalink
Added syscalls to the Makefile, though, it's far from finished.
Browse files Browse the repository at this point in the history
  • Loading branch information
oxagast committed Oct 7, 2016
1 parent 213eb3b commit 51b33b3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
ansvif
faulty
find_suid
syscalls
!/man/*
!/bin/
/bin/*
Expand All @@ -30,4 +31,3 @@ Makefile.in
config.log
config.status
aclocal.m4
src/linux/syscalls/syscalls
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
#SUBDIRS = tests
bin_PROGRAMS = ansvif find_suid faulty
bin_PROGRAMS = ansvif find_suid faulty syscalls
noinst_LIBRARIES = libgzstream.a
libgzstream_a_SOURCES = include/gzstream/gzstream.h include/gzstream/gzstream.C
ansvif_SOURCES = src/common.cpp src/linux/bin2hex.cpp src/linux/bin2hex_pc.cpp src/linux/popen2.cpp src/linux/main.cpp src/linux/help.cpp src/match_seg.cpp src/linux/sys_string.cpp src/linux/sys_string_pc.cpp src/linux/man_read.cpp src/trash.cpp src/randomizer.cpp include/gzstream/gzstream.h include/xmlwriter/xml_writer.hpp
Expand All @@ -11,6 +11,8 @@ ansvif_LDFLAGS = -I./include/gzstream -I./include/xml_writer
find_suid_SOURCES = src/linux/find_suid.cpp
faulty_SOURCES = src/faulty.c
faulty_CFLAGS = -ansi -fno-stack-protector
syscalls_SOURCES = src/linux/syscalls/syscalls.c
syscalls_CFLAGS = -Wno-int-conversion
ansvifdir = bin
AM_CXXFLAGS = -Wall
check: all
Expand Down
File renamed without changes.
Empty file added src/linux/syscalls/.dirstamp
Empty file.
2 changes: 1 addition & 1 deletion src/linux/syscalls/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ int main(int argc, char *argv[]) {
}
if (strcmp(argv[1], "chmod") == 0) {
/* int chmod(const char *pathname, mode_t mode); */
printf("%s", argv[1]);
printf("%s\n", argv[1]);
ret_code = chmod(argv[2], argv[3]);
}
} else {
Expand Down

0 comments on commit 51b33b3

Please sign in to comment.