projects
/
cwebfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
613a08c
)
work around insufficient crypt() by compiling login normally
author
Jann Horn
<jannhorn@googlemail.com>
Mon, 12 Nov 2012 18:08:59 +0000
(19:08 +0100)
committer
Jann Horn
<jannhorn@googlemail.com>
Mon, 12 Nov 2012 18:08:59 +0000
(19:08 +0100)
compile
patch
|
blob
|
history
diff --git
a/compile
b/compile
index
251fa4a
..
0ca9574
100755
(executable)
--- a/
compile
+++ b/
compile
@@
-1,7
+1,13
@@
#!/bin/bash
#!/bin/bash
-for cgi in
login
checkstatus listdir; do
+for cgi in checkstatus listdir; do
echo -e "\ncompiling $cgi.c..."
diet gcc -O3 -std=gnu99 -Wall -Werror -g -o $cgi $cgi.c cgistuff.c hex.c -lcrypt -lowfat
sudo chown root:root $cgi
sudo chmod u+s $cgi
done
echo -e "\ncompiling $cgi.c..."
diet gcc -O3 -std=gnu99 -Wall -Werror -g -o $cgi $cgi.c cgistuff.c hex.c -lcrypt -lowfat
sudo chown root:root $cgi
sudo chmod u+s $cgi
done
+
+# diet doesn't work here because crypt() doesn't support modern hashes
+echo -e "\ncompiling login.c..."
+gcc -O3 -std=gnu99 -Wall -Werror -g -o login login.c cgistuff.c hex.c -lcrypt -lowfat
+sudo chown root:root login
+sudo chmod u+s login