NetBSD-Bugs archive

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

Re: PR/49144 CVS commit: src/tests/fs/vfs



The following reply was made to PR bin/49144; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: Andreas Gustafsson <gson%gson.org@localhost>
Subject: Re: PR/49144 CVS commit: src/tests/fs/vfs
Date: Fri, 29 Aug 2014 20:44:47 +0200

 Good catch!
 
 #0  0x00007f7ff6c0e6b9 in unix2dostime (tsp=0x7f7fffffd6f8, 
     gmtoff=<optimized out>, ddp=0x7f7ff7733e5a, dtp=0x0, dhp=0x0)
     at 
/usr/src/sys/rump/fs/lib/libmsdos/../../../../fs/msdosfs/msdosfs_conv.c:139
 #1  0x00007f7ff6c07a98 in msdosfs_setattr (v=0x7f7fffffd660)
     at 
/usr/src/sys/rump/fs/lib/libmsdos/../../../../fs/msdosfs/msdosfs_vnops.c:387
 #2  0x00007f7ff2c5975f in VOP_SETATTR (vp=0x7f7ff7734cc0, vap=<optimized out>, 
     cred=<optimized out>)
     at /usr/src/lib/librump/../../sys/rump/../kern/vnode_if.c:362
 #3  0x00007f7ff3038048 in do_sys_utimensat (l=l@entry=0x7f7ff73ba800, 
     fdat=fdat@entry=-100, vp=0x7f7ff7734cc0, vp@entry=0x0, 
     path=path@entry=0x41b0aa "file.test", flag=<optimized out>, 
     tptr=<optimized out>, seg=seg@entry=UIO_SYSSPACE)
     at /usr/src/lib/librumpvfs/../../sys/rump/../kern/vfs_syscalls.c:3858
 (gdb) list
 144                             months = year & 0x03 ? regyear : leapyear;
 145                             for (month = 0; month < 12; month++) {
 146                                     if (days < months[month])
 147                                             break;
 148                                     days -= months[month];
 149                             }
 150                             lastddate = ((days + 1) << DD_DAY_SHIFT)
 151                                 + ((month + 1) << DD_MONTH_SHIFT);
 
 
  ;-}
 
 Martin
 


Home | Main Index | Thread Index | Old Index