lkml.org 
[lkml]   [1996]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: rmdir system call
Ulrich Windl wrote:
>
> On 20 Mar 96 at 7:26, Nick Randell wrote:
>
> > I have some code which is calling rmdir and passing the directory name
> > is with a trailing '/'.
> >
> > eg rmdir("/tmp/nick/")
> >
> > The system call is returning with 'ENOENT'.
> >
> >
> > The same code works ok on other operating systems. (HPUX, IRIX, AIX ...)
> >
> >
> > Like my last posting, which is right?
> >
> > If Linux is wrong, what can I do about it?
>
> Remove the trailing '/', and it will work on every machine.
>

I can do that but why is the linux rmdir different?

Should you be able to call rmdir with a trailing '/'?


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.032 / U:1.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site