[DragonFlyBSD - Bug #2543] man rmdir(2) : add EINVAL to the error section

2013-04-10 Thread Joris giovannangeli via Redmine

Issue #2543 has been updated by jorisgio.


You're right, linux returns EBUSY too. I have check the pathname ending by a 
dot, it returnds EINVAL, hence it's correct. (By ending by a dot, I mean 
foo/bar/.)

Bug #2543: man rmdir(2) : add EINVAL to the error section
http://bugs.dragonflybsd.org/issues/2543

Author: jorisgio
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 


rmdir can return EINVAL if the directory is a mount point :

See sys/kern/vfs_syscalls.c:3997

/*
 * Do not allow directories representing mount points to be
 * deleted, even if empty.  Check write perms on mount point
 * in case the vnode is aliased (aka nullfs).
 */
if (nd-nl_nch.ncp-nc_flag  (NCF_ISMOUNTPT))
return (EINVAL);


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://bugs.dragonflybsd.org/my/account


[DragonFlyBSD - Bug #2523] route show is stuck in an infinite loop

2013-03-03 Thread Joris giovannangeli via Redmine

Issue #2523 has been reported by jorisgio.


Bug #2523: route show is stuck in an infinite loop
http://bugs.dragonflybsd.org/issues/2523

Author: jorisgio
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 


netstat -r prints the routing table, but route show does not terminate.
As far as i understand, netname is called with a host address instead of a 
network address, the ip of my nic.


Here is a backtrace :

Starting program: /usr/src/sbin/route/route show
Routing tables

Internet:
Destination  Gateway  Flags 
^C
Program received signal SIGINT, Interrupt.
netname (sa=0x80069d0a8) at route.c:465
465 mask = (long)mask  subnetshift;
(gdb) bt
#0  netname (sa=0x80069d0a8) at route.c:465
#1  0x0040493e in p_sockaddr (sa=0x80069d0a8, flags=0, width=31) at 
show.c:343
#2  0x0040464f in p_rtentry (rtm=0x80069d000) at show.c:240
#3  0x0040444d in show (argc=1, argv=0x7798) at show.c:174
#4  0x004006ed in main (argc=1, argv=0x7798) at route.c:192



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://bugs.dragonflybsd.org/my/account