newgrp.c (200420) | newgrp.c (200462) |
---|---|
1/*- 2 * Copyright (c) 2002 Tim J. Robbins. 3 * 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 --- 15 unchanged lines hidden (view full) --- 24 * SUCH DAMAGE. 25 */ 26 27/* 28 * newgrp -- change to a new group 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Tim J. Robbins. 3 * 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 --- 15 unchanged lines hidden (view full) --- 24 * SUCH DAMAGE. 25 */ 26 27/* 28 * newgrp -- change to a new group 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/usr.bin/newgrp/newgrp.c 200420 2009-12-11 23:35:38Z delphij $"); | 32__FBSDID("$FreeBSD: head/usr.bin/newgrp/newgrp.c 200462 2009-12-13 03:14:06Z delphij $"); |
33 34#include <sys/types.h> 35 36#include <err.h> | 33 34#include <sys/types.h> 35 36#include <err.h> |
37#include <errno.h> |
|
37#include <grp.h> 38#include <libgen.h> | 38#include <grp.h> 39#include <libgen.h> |
40#include <limits.h> |
|
39#include <login_cap.h> 40#include <paths.h> 41#include <pwd.h> 42#include <stdio.h> 43#include <stdlib.h> 44#include <string.h> 45#include <unistd.h> 46 --- 260 unchanged lines hidden --- | 41#include <login_cap.h> 42#include <paths.h> 43#include <pwd.h> 44#include <stdio.h> 45#include <stdlib.h> 46#include <string.h> 47#include <unistd.h> 48 --- 260 unchanged lines hidden --- |