diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-08 01:21:58 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-08 01:21:58 +0800 |
commit | 605b7a3e8c27c10276ba8c0322b90b12f2db18c5 (patch) | |
tree | 7635f8cd21c5ff661bf3e6aa0a647b437ab72301 /util | |
parent | d7b98add111160254fc10b50f0ece50fcf3c5b48 (diff) | |
download | pttbbs-605b7a3e8c27c10276ba8c0322b90b12f2db18c5.tar pttbbs-605b7a3e8c27c10276ba8c0322b90b12f2db18c5.tar.gz pttbbs-605b7a3e8c27c10276ba8c0322b90b12f2db18c5.tar.bz2 pttbbs-605b7a3e8c27c10276ba8c0322b90b12f2db18c5.tar.lz pttbbs-605b7a3e8c27c10276ba8c0322b90b12f2db18c5.tar.xz pttbbs-605b7a3e8c27c10276ba8c0322b90b12f2db18c5.tar.zst pttbbs-605b7a3e8c27c10276ba8c0322b90b12f2db18c5.zip |
* remove dead code.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4523 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/cleanident.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/util/cleanident.c b/util/cleanident.c deleted file mode 100644 index 0d32374c..00000000 --- a/util/cleanident.c +++ /dev/null @@ -1,19 +0,0 @@ -/* $Id$ */ -#include "bbs.h" - -int main(int argc, char **argv) -{ - userec_t usr; - int fd, i; - if( argc == 1 || (fd = open(argv[1], O_RDWR)) < 0 ){ - fprintf(stderr, "usage: cleanident path_to_passwd\n"); - return 1; - } - for( i = 0 ; read(fd, &usr, sizeof(usr)) == sizeof(usr) ; ++ i ){ - memset(usr.pad0, 0, sizeof(usr.pad0)); - if( lseek(fd, i * sizeof(usr), SEEK_SET) != -1 ) - write(fd, &usr, sizeof(usr)); - } - printf("%d users cleaned\n", i); - return 0; -} |