git.samba.org
/
kai
/
samba.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
sync with SAMBA_2_2
[kai/samba.git]
/
packaging
/
Caldera
/
OpenLinux
/
updatesmbpasswd.perl
1
#!/usr/bin/perl -w
2
while ( <> ) {
3
print;
4
@V = split(/:/);
5
$_ = $V[3];
6
if ( $V[0] !~ /^\#/ && !(/^[0-9A-F]{32}$/ || /^X{32}$/ || /^\*{32}$/) ) {
7
$V[3] = "X" x 32;
8
}
9
print( join( ':', @V));
10
}