Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a comment
[git.ikiwiki.info.git]
/
ikiwiki-update-wikilist
diff --git
a/ikiwiki-update-wikilist
b/ikiwiki-update-wikilist
index a6425f011c6a7e04c281cdfe8f70094d302818e5..2807e6be682e23dc7f29764c2670b890baa42016 100755
(executable)
--- a/
ikiwiki-update-wikilist
+++ b/
ikiwiki-update-wikilist
@@
-1,6
+1,7
@@
#!/usr/bin/perl -t
# Add a user to the system wide wikilist.
#!/usr/bin/perl -t
# Add a user to the system wide wikilist.
-# This script can safely be made suid.
+# This script can safely be made suid or put in /etc/sudoers.
+no lib '.';
use warnings;
use strict;
use English;
use warnings;
use strict;
use English;
@@
-30,6
+31,9
@@
while (<$list>) {
$seen=1;
push @lines, $_;
}
$seen=1;
push @lines, $_;
}
+ else {
+ $changed=1;
+ }
}
else {
push @lines, $_;
}
else {
push @lines, $_;