pwd_mkdb.c (51025) | pwd_mkdb.c (53183) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94"; 43#endif 44static const char rcsid[] = | 1/*- 2 * Copyright (c) 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94"; 43#endif 44static const char rcsid[] = |
45 "$FreeBSD: head/usr.sbin/pwd_mkdb/pwd_mkdb.c 51025 1999-09-06 17:30:03Z peter $"; | 45 "$FreeBSD: head/usr.sbin/pwd_mkdb/pwd_mkdb.c 53183 1999-11-15 16:45:37Z sheldonh $"; |
46#endif /* not lint */ 47 48#include <sys/param.h> 49#include <sys/stat.h> 50 51#include <db.h> 52#include <err.h> 53#include <errno.h> --- 56 unchanged lines hidden (view full) --- 110 u_int method, methoduid; 111 int Cflag; 112 int nblock = 0; 113 114 Cflag = 0; 115 strcpy(prefix, _PATH_PWD); 116 makeold = 0; 117 username = NULL; | 46#endif /* not lint */ 47 48#include <sys/param.h> 49#include <sys/stat.h> 50 51#include <db.h> 52#include <err.h> 53#include <errno.h> --- 56 unchanged lines hidden (view full) --- 110 u_int method, methoduid; 111 int Cflag; 112 int nblock = 0; 113 114 Cflag = 0; 115 strcpy(prefix, _PATH_PWD); 116 makeold = 0; 117 username = NULL; |
118 while ((ch = getopt(argc, argv, "Cd:ps:u:vN")) != -1) | 118 while ((ch = getopt(argc, argv, "Cd:pqs:u:vN")) != -1) |
119 switch(ch) { 120 case 'C': /* verify only */ 121 Cflag = 1; 122 break; 123 case 'd': 124 strncpy(prefix, optarg, sizeof prefix - 1); 125 break; 126 case 'p': /* create V7 "file.orig" */ 127 makeold = 1; 128 break; | 119 switch(ch) { 120 case 'C': /* verify only */ 121 Cflag = 1; 122 break; 123 case 'd': 124 strncpy(prefix, optarg, sizeof prefix - 1); 125 break; 126 case 'p': /* create V7 "file.orig" */ 127 makeold = 1; 128 break; |
129 case 'q': 130 pw_big_ids_warning = 0; 131 break; |
|
129 case 's': /* change default cachesize */ 130 openinfo.cachesize = atoi(optarg) * 1024 * 1024; 131 break; 132 case 'u': /* only update this record */ 133 username = optarg; 134 break; 135 case 'v': /* backward compatible */ 136 break; --- 479 unchanged lines hidden --- | 132 case 's': /* change default cachesize */ 133 openinfo.cachesize = atoi(optarg) * 1024 * 1024; 134 break; 135 case 'u': /* only update this record */ 136 username = optarg; 137 break; 138 case 'v': /* backward compatible */ 139 break; --- 479 unchanged lines hidden --- |