chown.c (cc6c5292fa8a241fe50604cf6a918edfbf7cd7d2) chown.c (edd4c52697927997fb1ce3c2c4c425e5ca3a56d6)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 11 unchanged lines hidden (view full) ---

20 * CDDL HEADER END
21 */
22/*
23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 11 unchanged lines hidden (view full) ---

20 * CDDL HEADER END
21 */
22/*
23 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28/* All Rights Reserved */
28/* All Rights Reserved */
29
30/*
31 * University Copyright- Copyright (c) 1982, 1986, 1988
32 * The Regents of the University of California
33 * All Rights Reserved
34 *
35 * University Acknowledgment- Portions of this document are derived from
36 * software developed by the University of California, Berkeley, and its
37 * contributors.
38 */
39
29
30/*
31 * University Copyright- Copyright (c) 1982, 1986, 1988
32 * The Regents of the University of California
33 * All Rights Reserved
34 *
35 * University Acknowledgment- Portions of this document are derived from
36 * software developed by the University of California, Berkeley, and its
37 * contributors.
38 */
39
40#pragma ident "%Z%%M% %I% %E% SMI"
41
42/*
43 * chown [-fR] uid[.gid] file ...
44 */
45
46#include <stdio.h>
47#include <ctype.h>
48#include <sys/types.h>
49#include <sys/stat.h>
50#include <pwd.h>
51#include <dirent.h>
52#include <grp.h>
53#include <errno.h>
40/*
41 * chown [-fR] uid[.gid] file ...
42 */
43
44#include <stdio.h>
45#include <ctype.h>
46#include <sys/types.h>
47#include <sys/stat.h>
48#include <pwd.h>
49#include <dirent.h>
50#include <grp.h>
51#include <errno.h>
52#include <unistd.h>
54
55struct passwd *pwd;
56struct passwd *getpwnam();
57struct stat stbuf;
58uid_t uid;
59int status;
60int fflag;
61int rflag;

--- 185 unchanged lines hidden ---
53
54struct passwd *pwd;
55struct passwd *getpwnam();
56struct stat stbuf;
57uid_t uid;
58int status;
59int fflag;
60int rflag;

--- 185 unchanged lines hidden ---