summaryrefslogtreecommitdiffstats
path: root/usr.sbin/chown
Commit message (Collapse)AuthorAgeFilesLines
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedngie2016-05-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
* MFHgjb2016-03-101-0/+11
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-091-0/+11
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | First pass to fix the 'tests' packages.gjb2016-02-021-0/+4
|/ | | | Sponsored by: The FreeBSD Foundation
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-273-62/+70
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-193-0/+36
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | Standardise chmod, chflags, chown and chgrp recursive symlink processingsmh2015-04-293-62/+70
| |/ |/| | | | | | | | | | | | | | | | | | | chmod, chflags, chgrp, chmod and chown now affect symlinks in -R mode as defined in symlink(7); previously symlinks were silently ignored. Differential Revision: https://reviews.freebsd.org/D2316 Reviewed by: jilles MFC after: 1 month Relnotes: yes Sponsored by: Multiplay
* | chown: Fix chown test numbereadler2014-07-171-1/+1
| |
* | chown: add a testeadler2014-06-303-0/+36
|/ | | | | Add a test for the chown utility. This sets up chown(8) to be capable of being tested. As such, only add one test for now as an example.
* Mark global functions and/or variables in chown(8) static where possible.ed2011-11-061-14/+14
| | | | This allows compilers and static analyzers to do more thorough analysis.
* Plug resource leak.trasz2010-06-051-0/+1
| | | | | Found with: Coverity Prevent CID: 7040
* Make chown(1) emit more useful error message when user/group name is invalid.trasz2010-06-031-3/+1
|
* Add a "-x" option to chown(8)/chgrp(1) similar to the same option ingavin2010-02-213-13/+26
| | | | | | | | | du(1), cp(1) etc, to prevent the crossing of mountpoints whilst using the commands recursively. PR: bin/130855 Submitted by: keramida MFC after: 1 month
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-2/+0
|
* In preparation for raising NGROUPS and NGROUPS_MAX, change basebrooks2009-06-191-2/+6
| | | | | | | | | | | | | | | | | | | | | | system callers of getgroups(), getgrouplist(), and setgroups() to allocate buffers dynamically. Specifically, allocate a buffer of size sysconf(_SC_NGROUPS_MAX)+1 (+2 in a few cases to allow for overflow). This (or similar gymnastics) is required for the code to actually follow the POSIX.1-2008 specification where {NGROUPS_MAX} may differ at runtime and where getgroups may return {NGROUPS_MAX}+1 results on systems like FreeBSD which include the primary group. In id(1), don't pointlessly add the primary group to the list of all groups, it is always the first result from getgroups(). In principle the old code was more portable, but this was only done in one of the two places where getgroups() was called to the overall effect was pointless. Document the actual POSIX requirements in the getgroups(2) and setgroups(2) manpages. We do not yet support a dynamic NGROUPS, but we may in the future. MFC after: 2 weeks
* Fix punctuation.trhodes2009-04-011-1/+1
| | | | | PR: 132834 Submitted by: "Alan R. S. Bueno" <alan.bsd@gmail.com>
* Expand *n't contractions.ru2005-02-132-2/+2
|
* Sort sections.ru2005-01-181-5/+5
|
* Added the EXIT STATUS section where appropriate.ru2005-01-172-2/+2
|
* Per letter dated July 22, 1999, delete clause 3 from code directlyimp2004-08-073-12/+0
| | | | from Berkeley.
* Use uid_t.charnier2003-09-071-3/+4
|
* Erase whitespace at EOL.ru2003-05-221-1/+1
| | | | Approved by: re (blanket)
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.obrien2003-05-031-3/+2
|
* Similar to chmod(1); make -v -v mean very verbose and showjohan2003-04-254-6/+44
| | | | | | | | the old and new uid/gid. PR: 41341 Submitted by: Edward Brocklesby <nighthawk@unrealircd.com> Reviewed by: bde@ (an older version)
* style.Makefile(5)obrien2003-04-041-1/+2
|
* Reword the description of -R a bit and add a note about being carefulkeramida2003-01-261-2/+6
| | | | | | | when -R is combined with patterns that might match ".." (like ".*"). PR: 46415 Submitted by: Gary W. Swearingen <swear@attbi.com>
* Use basename(3).obrien2002-12-301-3/+2
|
* Fix a spelling mistake.dwmalone2002-07-171-1/+1
| | | | | | PR: 40695 Submitted by: Maxim Maximov <mcsi@agava.com> MFC after: 1 week
* The .Nm utilitycharnier2002-07-141-4/+5
|
* Kill __P(), use ANSI C function declarations, remove local prototype for main,jmallett2002-06-301-21/+14
| | | | and add a __FBSDID() while I'm here.
* In the SUPPORT_DOT case, warn that seperation with a period is deprecated.jmallett2002-06-271-0/+1
| | | | | | | | | | | In -STABLE, this is default, in -CURRENT it is not, which leads to many a headache for a user coming to -CURRENT without remembering this fact. It is one of the POLA violations we have not avoided by preparing the users for it appopriately. Therefore, a warnx(3) is added here, explicitly to be MFC'd shortly to start the re-education process rolling. Reviewed by: General murmurs of approval in that IRC channel. MFC after: 3 days
* Don't exit immediately if an error occurs, continue but exit non-zero.tjr2002-06-021-5/+9
|
* mdoc(7) police: removed an extra .Op call.ru2002-05-301-1/+1
|
* chown(8) was not describing symlinks correctly, fixed.trhodes2002-04-091-3/+6
| | | | | | PR: 36447 No objections from: ru MFC after: 3 days
* Add prototypes for main() so that these programs compile with -Werrorluigi2001-12-141-0/+1
| | | | | | | | | | | | (which somehow now seems to be the default for compiling -current). This error popped up while doing a PicoBSD cross-compile on a 4.3-ish system, it may well be that there are other apps which have similar problems, but I did not spot them as they are not included in my picobsd config. Whether adding prototypes for main() is the correct solution or not I have no idea, a request to -current on the matter went basically unanswered. Those who have better ideas are welcome to back this out and replace it with the correct fix.
* Clean up, WARNSify, unbreak -v option handling.ru2001-09-132-52/+52
|
* If a sentence starts inside parenthesis, it should end insidedd2001-09-111-1/+1
| | | | parenthesis.
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-152-7/+3
|
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-1/+1
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-102-2/+2
|
* Starting with 5.0-R, do not support `.' as a owner / group delimiter.obrien2001-05-311-1/+0
|
* Fixed the bug from the previous revision.ru2001-05-311-1/+1
| | | | | | | | | | | | | | | ``chown -h owner symlink'' did not set the symlink's owner if the file the symlink points to already had that owner: # ls -l alink afile -rw-r--r-- 1 nobody ru 0 May 31 14:14 afile lrwxr-xr-x 1 root ru 5 May 31 14:14 alink -> afile # ./chown -h -v nobody alink # ls -l alink afile -rw-r--r-- 1 nobody ru 0 May 31 14:14 afile lrwxr-xr-x 1 root ru 5 May 31 14:14 alink -> afile Similarly for chgrp(1) and chmod(1).
* Follow symbolic links named as command line arguments if run without -R.ru2001-05-281-2/+3
| | | | | | | | | | | | | | This is required by symlink(7), ``Commands not traversing a file tree'' subsection, third paragraph: : It is important to realize that this rule includes commands which may : optionally traverse file trees, e.g. the command ``chown file'' is : included in this rule, while the command ``chown -R file'' is not. For chown(8) and chgrp(1), this is also is compliance with the latest POSIX 1003.1-200x draft. MFC after: 1 week
OpenPOWER on IntegriCloud