summaryrefslogtreecommitdiff
path: root/packaging/Caldera/OpenLinux/updatesmbpasswd.perl
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>2000-07-30 06:33:30 +0000
committerJohn Terpstra <jht@samba.org>2000-07-30 06:33:30 +0000
commit5dbd30002acaa971a84b6d917f9dc06d7f118836 (patch)
tree8feb2792e52b7f11cd0c3f3751d696810ae87b01 /packaging/Caldera/OpenLinux/updatesmbpasswd.perl
parentb58ebd10dee6e779fb4b977a7f55db1b23001564 (diff)
downloadsamba-5dbd30002acaa971a84b6d917f9dc06d7f118836.tar.gz
samba-5dbd30002acaa971a84b6d917f9dc06d7f118836.tar.bz2
samba-5dbd30002acaa971a84b6d917f9dc06d7f118836.zip
Adding files provided by Klaus Singvogel of Caldera
(This used to be commit ab6d01bdccf3106c00563173bfb3e3b3d7c3a64c)
Diffstat (limited to 'packaging/Caldera/OpenLinux/updatesmbpasswd.perl')
-rwxr-xr-xpackaging/Caldera/OpenLinux/updatesmbpasswd.perl10
1 files changed, 10 insertions, 0 deletions
diff --git a/packaging/Caldera/OpenLinux/updatesmbpasswd.perl b/packaging/Caldera/OpenLinux/updatesmbpasswd.perl
new file mode 100755
index 0000000000..60f572b490
--- /dev/null
+++ b/packaging/Caldera/OpenLinux/updatesmbpasswd.perl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl -w
+while ( <> ) {
+ print;
+ @V = split(/:/);
+ $_ = $V[3];
+ if ( $V[0] !~ /^\#/ && !(/^[0-9A-F]{32}$/ || /^X{32}$/ || /^\*{32}$/) ) {
+ $V[3] = "X" x 32;
+ }
+ print( join( ':', @V));
+}