This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cygwin: mkdir fails on UNC pathnames (FAQ alert)


Robert could you add this to the FAQ?  GNU mkdir doesn't understand UNC
paths.

cgf

On Wed, Jun 20, 2001 at 11:09:20AM +0200, Ralf Fassel wrote:
>Hi all,
>mkdir fails to create UNC pathnames properly on Winnt/Cygwin.
>
>    $ net use \* '\\server\share' 'passwd'
>    [share info displayed]
>
>    $ type mkdir
>    mkdir is hashed (/usr/bin/mkdir)
>
>    $ mkdir -p //server/share/some/nonexistent/directory
>    mkdir: cannot create directory `//server/share/some/nonexistent/directory': No such file or directory
>
>    $ ls -l //server/share/some/
>    ls: //server/share/some/: No such file or directory
>    
>Instead a local path has been created:
>    $ ls -l /server/share/some/
>    total 0
>    drwxrwxrwx    2 ralf     Kein            0 Jun 20 08:59 nonexistent
>
>Creating those pathes via the mount-points works OK.
>   $ mkdir -p k:/some/nonexistent/directory
>   $ mkdir -p /k/some/nonexistent/directory
>    
>---------------------------------------
>System info:
>
>$ uname -a
>CYGWIN_NT-4.0 MARS 1.3.2(0.39/3/2) 2001-05-20 23:28 i686 unknown
>
>$ cygcheck -s
>
>Cygnus Win95/NT Configuration Diagnostics
>Current System Time: Wed Jun 20 09:01:17 2001
>
>WinNT Ver 4.0 build 1381 Service Pack 4
>
>Path:	/usr/bin
>	/c/local/bin
>	/c/programme/devstudio/sharedide/bin/ide
>	/c/programme/devstudio/sharedide/bin
>	/c/programme/devstudio/VC/bin
>	/usr/local/bin
>	/usr/bin
>	/bin
>	/cygdrive/c/NuTC/mksnt
>	/cygdrive/c/programme/devstudio/vc/bin
>	/cygdrive/c/programme/devstudio/sharedide/bin
>	/usr/bin
>	/cygdrive/c/winnt/system32
>	/c/winnt/system32
>
>SysDir: C:\WINNT\System32
>WinDir: C:\WINNT
>
>PWD = `/home/ralf'
>CYGWIN = `binmode tty ntsec'
>USER = `ralf'
>MAKE_MODE = `unix'
>HOME = `/home/ralf'
>
>Use `-r' to scan registry
>
>a:  fd           N/A    N/A                    
>c:  hd  NTFS    2014Mb  93% CP CS UN PA FC     NT_Workst
>d:  fd           N/A    N/A                    
>e:  hd  NTFS    3200Mb  82% CP CS UN PA FC     Daten_und_so
>f:  net NTFS    8117Mb  91% CP CS    PA        ralf
>g:  net NTFS    8117Mb  91% CP CS    PA        ralf
>h:  net          N/A    N/A                    
>i:  net NTFS    8117Mb  91% CP CS    PA        ralf
>j:  net NTFS    8117Mb  91% CP CS    PA        ralf
>k:  net NTFS    8117Mb  91% CP CS    PA        ralf
>s:  net NTFS    7986Mb  98% CP CS    PA        software
>x:  cd           N/A    N/A                    
>
>C:\cygwin\bin  /usr/bin  system  binmode
>C:\cygwin\lib  /usr/lib  system  binmode
>C:\cygwin  /        system  binmode
>c:\home  /home    system  binmode
>c:\temp  /tmp     system  binmode
>c:    /c       system  binmode,noumount
>e:    /e       system  binmode,noumount
>f:    /f       system  binmode,noumount
>g:    /g       system  binmode,noumount
>i:    /i       system  binmode,noumount
>j:    /j       system  binmode,noumount
>k:    /k       system  binmode,noumount
>s:    /s       system  binmode,noumount
>
>Found: C:\cygwin\bin\bash.exe
>Found: C:\cygwin\bin\cat.exe
>Found: C:\cygwin\bin\cpp.exe
>Found: C:\cygwin\bin\find.exe
>Found: C:\cygwin\bin\gcc.exe
>Found: C:\cygwin\bin\gdb.exe
>Found: C:\cygwin\bin\ld.exe
>Found: C:\cygwin\bin\ls.exe
>Found: C:\cygwin\bin\make.exe
>Found: C:\WINNT\sh.exe
>Found: C:\cygwin\bin\sh.exe
>
>  497k 1997/05/07 C:\WINNT\System32\cygwin.dll
>   56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll
>   18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll
>   17k 2001/01/07 C:\cygwin\bin\cyghistory4.dll
>   14k 2000/10/23 C:\cygwin\bin\cygintl.dll
>   81k 2001/04/28 C:\cygwin\bin\cygitcl30.dll
>   35k 2001/04/28 C:\cygwin\bin\cygitk30.dll
>   45k 2000/10/22 C:\cygwin\bin\cygjbig1.dll
>  108k 2001/01/07 C:\cygwin\bin\cygreadline4.dll
>  390k 2001/01/18 C:\cygwin\bin\cygtcl80.dll
>    5k 2001/01/18 C:\cygwin\bin\cygtclpip80.dll
>   10k 2001/01/18 C:\cygwin\bin\cygtclreg80.dll
>  243k 2000/10/23 C:\cygwin\bin\cygtiff3.dll
>  623k 2001/04/28 C:\cygwin\bin\cygtk80.dll
>   41k 2000/11/20 C:\cygwin\bin\cygXpm-noX4.dll
>   45k 2000/11/20 C:\cygwin\bin\cygXpm-X4.dll
>   49k 2001/02/03 C:\cygwin\bin\cygz.dll
>  678k 2001/05/21 C:\cygwin\bin\cygwin1.dll
>    Cygwin DLL version info:
>        dll major: 1003
>        dll minor: 2
>        dll epoch: 19
>        dll bad signal mask: 19005
>        dll old termios: 5
>        dll malloc env: 28
>        api major: 0
>        api minor: 39
>        shared data: 3
>        dll identifier: cygwin1
>        mount registry: 2
>        cygnus registry name: Cygnus Solutions
>        cygwin registry name: Cygwin
>        program options name: Program Options
>        cygwin mount registry name: mounts v2
>        cygdrive flags: cygdrive flags
>        cygdrive prefix: cygdrive prefix
>        cygdrive default prefix: 
>        build date: Sun May 20 23:28:17 EDT 2001
>        shared id: cygwin1S3
>
>Use -h to see help about each section
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple

-- 
cgf@cygnus.com                        Red Hat, Inc.
http://sources.redhat.com/            http://www.redhat.com/

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]