Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2009 10:40:02 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/111226: commit references a PR
Message-ID:  <200905301040.n4UAe2th007313@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/111226; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/111226: commit references a PR
Date: Sat, 30 May 2009 10:36:29 +0000 (UTC)

 Author: jilles
 Date: Sat May 30 10:36:14 2009
 New Revision: 193086
 URL: http://svn.freebsd.org/changeset/base/193086
 
 Log:
   Preserve file flags on symlinks in cp -Rp.
   This reported ENOSYS before.
   
   PR:		bin/111226 (part of)
   Submitted by:	Martin Kammerhofer
   Approved by:	ed (mentor)
   MFC after:	3 weeks
 
 Modified:
   head/bin/cp/utils.c
 
 Modified: head/bin/cp/utils.c
 ==============================================================================
 --- head/bin/cp/utils.c	Sat May 30 08:53:13 2009	(r193085)
 +++ head/bin/cp/utils.c	Sat May 30 10:36:14 2009	(r193086)
 @@ -365,7 +365,7 @@ setfile(struct stat *fs, int fd)
  	if (!gotstat || fs->st_flags != ts.st_flags)
  		if (fdval ?
  		    fchflags(fd, fs->st_flags) :
 -		    (islink ? (errno = ENOSYS) :
 +		    (islink ? lchflags(to.p_path, fs->st_flags) :
  		    chflags(to.p_path, fs->st_flags))) {
  			warn("chflags: %s", to.p_path);
  			rval = 1;
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905301040.n4UAe2th007313>