search for: errsv

Displaying 3 results from an estimated 3 matches for "errsv".

Did you mean: errs
2019 Nov 05
0
[klibc:master] losetup: Delete fallbacks to LOOP_{GET, SET}_STATUS
...info->lo_rdevice != info64->lo_rdevice || - info->lo_inode != info64->lo_inode || - info->lo_offset != info64->lo_offset) - return -EOVERFLOW; - - return 0; -} - - static int show_loop(char *device) { - struct loop_info loopinfo; struct loop_info64 loopinfo64; int fd, errsv; @@ -106,23 +75,6 @@ static int show_loop(char *device) return 0; } - if (ioctl(fd, LOOP_GET_STATUS, &loopinfo) == 0) { - printf ("%s: [%04x]:%ld (%s)", - device, loopinfo.lo_device, loopinfo.lo_inode, - loopinfo.lo_name); - - if (loopinfo.lo_offset) - printf(",...
2010 Mar 14
0
[patches] klibc review unsorted patch queue
...info->lo_rdevice != info64->lo_rdevice || + info->lo_inode != info64->lo_inode || + info->lo_offset != info64->lo_offset) + return -EOVERFLOW; + + return 0; +} + + +static int show_loop(char *device) +{ + struct loop_info loopinfo; + struct loop_info64 loopinfo64; + int fd, errsv; + + if ((fd = open(device, O_RDONLY)) < 0) { + int errsv = errno; + fprintf(stderr, "loop: can't open device %s: %s\n", + device, strerror (errsv)); + return 2; + } + + if (ioctl(fd, LOOP_GET_STATUS64, &loopinfo64) == 0) { + + loopinfo64.lo_file_name[LO_NAME_SIZE-2] = ...
2003 Dec 01
0
No subject
When I run smbclient 1. smbclient //LINUX01//homes -U test password is requested, I enter the password, and I get in 2. smbclient //LINUX01//homes -U Jane password is requested, I enter the password, and I cannot get in (ERRSV - ERRbadpw (Bad Password - name/password pair in a Tree Connect or Session Setup are invalid) 3. smbclient //LINUX01//homes -U Jane password is requested, I do not enter a password, and I cannot get in. (ERRSV - ERRbadpw (Bad Password - name/password pa...