aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/chown
Commit message (Collapse)AuthorAgeFilesLines
* MFHGlen Barber2016-03-101-0/+11
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296625
| * DIRDEPS_BUILD: Connect MK_TESTS.Bryan Drewery2016-03-091-0/+11
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296587
* | First pass to fix the 'tests' packages.Glen Barber2016-02-021-0/+4
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295171
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-273-62/+70
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-193-0/+36
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | Standardise chmod, chflags, chown and chgrp recursive symlink processingSteven Hartland2015-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 Notes: svn path=/head/; revision=282208
* | chown: Fix chown test numberEitan Adler2014-07-171-1/+1
| | | | | | | | Notes: svn path=/head/; revision=268793
* | chown: add a testEitan Adler2014-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. Notes: svn path=/head/; revision=268030
* Mark global functions and/or variables in chown(8) static where possible.Ed Schouten2011-11-061-14/+14
| | | | | | | This allows compilers and static analyzers to do more thorough analysis. Notes: svn path=/head/; revision=227251
* Plug resource leak.Edward Tomasz Napierala2010-06-051-0/+1
| | | | | | | | Found with: Coverity Prevent CID: 7040 Notes: svn path=/head/; revision=208815
* Make chown(1) emit more useful error message when user/group name is invalid.Edward Tomasz Napierala2010-06-031-3/+1
| | | | Notes: svn path=/head/; revision=208792
* Add a "-x" option to chown(8)/chgrp(1) similar to the same option inGavin Atkinson2010-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 Notes: svn path=/head/; revision=204165
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | Notes: svn path=/head/; revision=201390
* In preparation for raising NGROUPS and NGROUPS_MAX, change baseBrooks Davis2009-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 Notes: svn path=/head/; revision=194494
* Fix punctuation.Tom Rhodes2009-04-011-1/+1
| | | | | | | | PR: 132834 Submitted by: "Alan R. S. Bueno" <alan.bsd@gmail.com> Notes: svn path=/head/; revision=190610
* Expand *n't contractions.Ruslan Ermilov2005-02-132-2/+2
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-5/+5
| | | | Notes: svn path=/head/; revision=140442
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-172-2/+2
| | | | Notes: svn path=/head/; revision=140368
* Per letter dated July 22, 1999, delete clause 3 from code directlyWarner Losh2004-08-073-12/+0
| | | | | | | from Berkeley. Notes: svn path=/head/; revision=133248
* Use uid_t.Philippe Charnier2003-09-071-3/+4
| | | | Notes: svn path=/head/; revision=119856
* Erase whitespace at EOL.Ruslan Ermilov2003-05-221-1/+1
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115224
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-031-3/+2
| | | | Notes: svn path=/head/; revision=114601
* Similar to chmod(1); make -v -v mean very verbose and showJohan Karlsson2003-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) Notes: svn path=/head/; revision=114005
* style.Makefile(5)David E. O'Brien2003-04-041-1/+2
| | | | Notes: svn path=/head/; revision=113091
* Reword the description of -R a bit and add a note about being carefulGiorgos Keramidas2003-01-261-2/+6
| | | | | | | | | | when -R is combined with patterns that might match ".." (like ".*"). PR: 46415 Submitted by: Gary W. Swearingen <swear@attbi.com> Notes: svn path=/head/; revision=109845
* Use basename(3).David E. O'Brien2002-12-301-3/+2
| | | | Notes: svn path=/head/; revision=108443
* Fix a spelling mistake.David Malone2002-07-171-1/+1
| | | | | | | | | PR: 40695 Submitted by: Maxim Maximov <mcsi@agava.com> MFC after: 1 week Notes: svn path=/head/; revision=100252
* The .Nm utilityPhilippe Charnier2002-07-141-4/+5
| | | | Notes: svn path=/head/; revision=99968
* Kill __P(), use ANSI C function declarations, remove local prototype for main,Juli Mallett2002-06-301-21/+14
| | | | | | | and add a __FBSDID() while I'm here. Notes: svn path=/head/; revision=99141
* In the SUPPORT_DOT case, warn that seperation with a period is deprecated.Juli Mallett2002-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 Notes: svn path=/head/; revision=98935
* Don't exit immediately if an error occurs, continue but exit non-zero.Tim J. Robbins2002-06-021-5/+9
| | | | Notes: svn path=/head/; revision=97732
* mdoc(7) police: removed an extra .Op call.Ruslan Ermilov2002-05-301-1/+1
| | | | Notes: svn path=/head/; revision=97558
* chown(8) was not describing symlinks correctly, fixed.Tom Rhodes2002-04-091-3/+6
| | | | | | | | | PR: 36447 No objections from: ru MFC after: 3 days Notes: svn path=/head/; revision=94309
* Add prototypes for main() so that these programs compile with -WerrorLuigi Rizzo2001-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. Notes: svn path=/head/; revision=87893
* Clean up, WARNSify, unbreak -v option handling.Ruslan Ermilov2001-09-132-52/+52
| | | | Notes: svn path=/head/; revision=83410
* If a sentence starts inside parenthesis, it should end insideDima Dorfman2001-09-111-1/+1
| | | | | | | parenthesis. Notes: svn path=/head/; revision=83343
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-152-7/+3
| | | | Notes: svn path=/head/; revision=81687
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-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. Notes: svn path=/head/; revision=80029
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-102-2/+2
| | | | Notes: svn path=/head/; revision=79537
* Starting with 5.0-R, do not support `.' as a owner / group delimiter.David E. O'Brien2001-05-311-1/+0
| | | | Notes: svn path=/head/; revision=77540
* Fixed the bug from the previous revision.Ruslan Ermilov2001-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). Notes: svn path=/head/; revision=77522
* Follow symbolic links named as command line arguments if run without -R.Ruslan Ermilov2001-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 Notes: svn path=/head/; revision=77333
* Make it clear that -P is the default.Ruslan Ermilov2001-05-252-0/+2
| | | | | | | PR: docs/27629 Notes: svn path=/head/; revision=77160