[Prev][Next][Index][Thread]

Bug Report ...




	Hello,

   I've no idea where to report my bug ... sorry
   
  FreeBSD Lib C Sources :
    freebsd/src/lib/libc/gen/getcwd.c

  Line 214-215 ( from snapshot 20000202 )
  Replace :
		bpt -= dp->d_namlen ;
		bcopy( dp->d_name, bpt, dp->d_namlen ) ;
  By :
		bpt -= ( dp->d_namlen - 1 ) ;
		bcopy( dp->d_name, bpt, dp->d_namlen - 1 ) ;

  or else getcwd only returns the upper directory
  after root.

 Bye.

-- Yves Martin --- Elève-ingénieur ENSIMAG - 3e année ---
  Adr : R.H.B. Ch. 765     Yves.Martin@ensimag.imag.fr   
  2 av. J. O.  GRENOBLE      Tél: 04 76 44 20 01         
---------------------------- ICQ: 53379907 --------------


Follow-Ups: