ericpruitt / homeishome Goto Github PK
View Code? Open in Web Editor NEWOverride passwd->pw_dir for the current user's password database entry with $HOME.
Override passwd->pw_dir for the current user's password database entry with $HOME.
$ make install
c99 -D_GNU_SOURCE -Werror -Wall -Wpedantic tests.c -o tests
tests.c: In function ‘main’:
tests.c:201:12: error: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘size_t {aka unsigned int}’ [-Werror=format=]
printf("Failures: %s%ld" RESET_ATTRIBUTES "\n",
^
cc1: all warnings being treated as errors
Makefile:35: recipe for target 'tests' failed
make: *** [tests] Error 1
Reproduced in an Ubuntu 16.04 i386 virtual machine.
$ HOME=/tmp ./homeishome.so ./test
ERROR: ld.so: object './homeishome.so' from LD_PRELOAD cannot be preloaded (cannot dynamically load executable): ignored.
/home/brlin
c99 noop.c -o noop
rm -f config.h.tmp
ldd noop | awk >> config.h.tmp ' \
/ld-linux/ { \
print "#define LD_PATH \"" $(NF - 1) "\""; \
exit; \
} \
'
mv config.h.tmp config.h
c99 -D_GNU_SOURCE -Wall -fPIC -O3 -shared homeishome.c -o homeishome.so -ldl -Wl,-e,lib_main
homeishome.c:21:5: error: ‘LD_PATH’ undeclared here (not in a function)
LD_PATH
^
make: *** [homeishome.so] Error 1
Makefile:30: recipe for target 'homeishome.so' failed
I printed the ldd noop
command's output and it seems to be using a different filename pattern for ld-linux*:
linux-vdso64.so.1 => (0x000076a0f7510000)
libc.so.6 => /lib/powerpc64le-linux-gnu/libc.so.6 (0x000076a0f7330000)
/lib64/ld64.so.2 (0x000076a0f7530000)
libc.so.6 => /lib/s390x-linux-gnu/libc.so.6 (0x000003ffa9580000)
/lib/ld64.so.1 (0x000003ffa9880000)
Comparison(armhf):
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xf7c88000)
/lib/ld-linux-armhf.so.3 (0xf7d74000)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.