]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - pw/edgroup.c
Don't assume a_name is a number just because the first character
[pw-darwin.git] / pw / edgroup.c
index 9dcbc638359cec5121941850d4b621fc06350905..6116fa6854ac4e4269225d0f215dabbc6d75a526 100644 (file)
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
- *
- *     $Id$
  */
 
  */
 
+#ifndef lint
+static const char rcsid[] =
+       "$Id: edgroup.c,v 1.5 1997/10/10 06:23:30 charnier Exp $";
+#endif /* not lint */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <stdarg.h>
-#include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <pwd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <pwd.h>
@@ -62,7 +64,7 @@ editgroups(char *name, char **groups)
        int             rc = 0;
        int             infd;
 
        int             rc = 0;
        int             infd;
 
-       if ((infd = open(groupfile, O_RDWR | O_CREAT | O_EXLOCK, 0644)) != -1) {
+       if ((infd = open(groupfile, O_RDWR | O_CREAT, 0644)) != -1) {
                FILE           *infp;
 
                if ((infp = fdopen(infd, "r+")) == NULL)
                FILE           *infp;
 
                if ((infp = fdopen(infd, "r+")) == NULL)