A NOTE has been added to this issue. 
====================================================================== 
https://austingroupbugs.net/view.php?id=1824 
====================================================================== 
Reported By:                dag-erling
Assigned To:                
====================================================================== 
Project:                    Issue 8 drafts
Issue ID:                   1824
Category:                   Shell and Utilities
Type:                       Clarification Requested
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       Dag-Erling Smørgrav 
Organization:                
User Reference:              
Section:                    Utilities 
Page Number:                2741-2748 
Line Number:                90593-90715, 90876-90880 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2024-04-01 15:31 UTC
Last Modified:              2024-10-07 16:37 UTC
====================================================================== 
Summary:                    cp: directories and symlinks
====================================================================== 

---------------------------------------------------------------------- 
 (0006907) geoffclare (manager) - 2024-10-07 16:37
 https://austingroupbugs.net/view.php?id=1824#c6907 
---------------------------------------------------------------------- 
> In macOS Sequoia, cp no longer follows symlinks in the destination

Sequoia has a known non-conformance to UNIX 03 in this area, so this is
likely related to that issue, in which case it will change soon. The UNIX
03 certification was made with a few "minor system faults" which Apple have
12 months to fix, and one of them is for cp failing to create a regular
file at the destination of a symlink.

Those who have an opengroup.org account can see the MSF details here:

https://www2.opengroup.org/pr/protected/openbrand/PRView?PR=2757

This is the problem statement:<blockquote>If you want to cp into symlink
and the target of this symlink doesn't exist then it should to be created
as a regular file. In the current test, ga11_linktarget should be created
as a regular file with contents of tetcp001.inp. Whereas in the current
version of our OS, it is not creating the file for the ga11_linktarget and
that is causing the test to fail with file missing error.</blockquote>
However, this makes the test case sound simpler than it is. These are the
commands used in the test (note that tetcp001.inp already exists as a
regular file and the test first ensures that ga11_linktarget does not
exist):
<pre>mkdir dircp006.tmp
ln -s `pwd`/ga11_linktarget dircp006.tmp/tetcp001.inp
cp tetcp001.inp dircp006.tmp/</pre>
It then expects ga11_linktarget to have been created with the contents of
tetcp001.inp but reports failure because the file could not be found. Note
that it doesn't use -RP so the symlink should definitely be followed. This
has been tested for UNIX 03 certifications for 20 years.

In case anyone thinks I'm revealing confidential information about Apple
here, I'm not; it is public if you know where to look. The MSF doesn't name
Apple, but it is listed (as MSF.X.0138) in the Sequoia "Commands and
Utilities V4" CSQ here:

https://www.opengroup.org/csq/repository/noreferences=1&RID=apple%252FCX1%25252F19.html


Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2024-04-01 15:31 dag-erling     New Issue                                    
2024-04-01 15:31 dag-erling     Name                      => Dag-Erling
Smørgrav
2024-04-01 15:31 dag-erling     Section                   => Utilities       
2024-04-01 15:31 dag-erling     Page Number               => 2741-2748       
2024-04-01 15:31 dag-erling     Line Number               => 90593-90715,
90876-90880
2024-04-02 06:19 dannyniu       Note Added: 0006731                          
2024-04-02 06:20 dannyniu       Note Added: 0006732                          
2024-04-02 06:21 dannyniu       Note Deleted: 0006732                        
2024-04-02 06:22 dannyniu       Note Edited: 0006731                         
2024-04-02 15:51 geoffclare     Note Added: 0006734                          
2024-04-04 14:30 geoffclare     Note Added: 0006737                          
2024-04-04 16:01 dag-erling     Note Added: 0006739                          
2024-04-04 16:59 geoffclare     Note Added: 0006740                          
2024-04-04 18:19 geoffclare     Note Edited: 0006740                         
2024-04-05 08:16 geoffclare     Note Edited: 0006740                         
2024-04-05 11:33 dag-erling     Note Added: 0006741                          
2024-04-08 08:39 geoffclare     Note Added: 0006743                          
2024-04-08 08:42 geoffclare     Note Edited: 0006737                         
2024-04-08 08:44 geoffclare     Note Edited: 0006743                         
2024-05-20 09:26 geoffclare     Note Added: 0006788                          
2024-05-20 09:28 geoffclare     Note Edited: 0006788                         
2024-06-10 18:16 eblake         Note Added: 0006807                          
2024-06-11 09:38 geoffclare     Note Added: 0006808                          
2024-06-11 09:53 geoffclare     Note Added: 0006809                          
2024-06-14 17:57 mirabilos      Note Added: 0006818                          
2024-10-04 17:02 dag-erling     Note Added: 0006904                          
2024-10-04 17:02 dag-erling     Note Added: 0006905                          
2024-10-04 17:03 dag-erling     Note Deleted: 0006905                        
2024-10-04 17:03 dag-erling     Note Edited: 0006904                         
2024-10-04 17:03 dag-erling     Note Edited: 0006904                         
2024-10-04 17:04 dag-erling     Note Edited: 0006904                         
2024-10-04 17:04 dag-erling     Note Edited: 0006904                         
2024-10-07 16:37 geoffclare     Note Added: 0006907                          
======================================================================


  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to