DragonFly BSD
DragonFly submit List (threaded) for 2004-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: /usr/bin/dirname calls getopt but doesn't need it [patch]


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Sun, 15 Aug 2004 18:08:55 +0200

On Thu, Jul 22, 2004 at 07:44:50PM +0200, Douwe Kiela wrote:
> Hello,
> 
> /usr/bin/dirname uses getopt(), but doesn't do anything with it, thus it can
> be removed.
> A patch is to be found here:
> 
> http://virtus.ath.cx/dfbsd/dirname.c.diff

The patch doesn't work. The getopt is useful because (a) it adjusts argc
and (b) gives the expected result if options are specified.

Joerg

> 
> Regards,
> Douwe
> 
> 



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