From 0890fe0b70f0a0106da74745dec4b8a0fb38de04 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 5 Nov 1998 02:50:17 +0000 Subject: Realise this needs to be without the '.sh' ending as we will be installing it in the BIN directory. Jeremy. (This used to be commit 75c79db9bec68b74d3b244f3d8184bd890ff33fa) --- source3/script/convert_smbpasswd | 17 +++++++++++++++++ source3/script/convert_smbpasswd.sh | 17 ----------------- 2 files changed, 17 insertions(+), 17 deletions(-) create mode 100755 source3/script/convert_smbpasswd delete mode 100755 source3/script/convert_smbpasswd.sh diff --git a/source3/script/convert_smbpasswd b/source3/script/convert_smbpasswd new file mode 100755 index 0000000000..edb775d3a6 --- /dev/null +++ b/source3/script/convert_smbpasswd @@ -0,0 +1,17 @@ +#!/bin/sh +# +# Convert a Samba 1.9.18 smbpasswd file format into +# a Samba 2.0 smbpasswd file format. +# Read from stdin and write to stdout for simplicity. +# Set the last change time to 0x363F96AD to avoid problems +# with trying to work out how to get the seconds since 1970 +# in awk or the shell. JRA. +# +nawk 'BEGIN {FS=":"} +{ + if( $0 ~ "^#" ) { + print $0 + } else { + printf( "%s:%s:%s:%s:[U ]:LCT-363F96AD:\n", $1, $2, $3, $4); + } +}' diff --git a/source3/script/convert_smbpasswd.sh b/source3/script/convert_smbpasswd.sh deleted file mode 100755 index edb775d3a6..0000000000 --- a/source3/script/convert_smbpasswd.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -# -# Convert a Samba 1.9.18 smbpasswd file format into -# a Samba 2.0 smbpasswd file format. -# Read from stdin and write to stdout for simplicity. -# Set the last change time to 0x363F96AD to avoid problems -# with trying to work out how to get the seconds since 1970 -# in awk or the shell. JRA. -# -nawk 'BEGIN {FS=":"} -{ - if( $0 ~ "^#" ) { - print $0 - } else { - printf( "%s:%s:%s:%s:[U ]:LCT-363F96AD:\n", $1, $2, $3, $4); - } -}' -- cgit