[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnu-arch-users] DAV login problem (and a fix)
From: |
Yasushi Saito - at home |
Subject: |
[Gnu-arch-users] DAV login problem (and a fix) |
Date: |
Tue, 18 Nov 2003 20:51:36 -0800 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2 |
I noticed today that the DAV interface isn't usable. Without getting
into too much detail, here's my fix.
(The problem was that the user name and password weren't always
zero-terminated.)
yaz
*** src/tla/libarch/pfs-dav.c~ Thu Oct 23 15:44:28 2003
--- src/tla/libarch/pfs-dav.c Tue Nov 18 20:33:54 2003
***************
*** 709,717 ****
auth = userdata;
len = str_length (auth->username);
! str_cpy_n (username, auth->username, MIN (len, NE_ABUFSIZ - 1));
len = str_length (auth->password);
! str_cpy_n (password, auth->password, MIN (len, NE_ABUFSIZ - 1));
return 0;
}
--- 709,717 ----
auth = userdata;
len = str_length (auth->username);
! str_cpy_n (username, auth->username, MIN (len + 1, NE_ABUFSIZ - 1));
len = str_length (auth->password);
! str_cpy_n (password, auth->password, MIN (len + 1, NE_ABUFSIZ - 1));
return 0;
}
- Re: [Gnu-arch-users] OT: Slavery???, (continued)
- Re: [Gnu-arch-users] OT: Slavery???, Stephen J. Turnbull, 2003/11/12
- Re: [Gnu-arch-users] OT: Slavery???, Tom Lord, 2003/11/12
- Re: [Gnu-arch-users] OT: Slavery???, Stephen J. Turnbull, 2003/11/13
- Re: [Gnu-arch-users] OT: Slavery???, Stephen J. Turnbull, 2003/11/13
- Re: [Gnu-arch-users] OT: Slavery???, Tom Lord, 2003/11/14
- Re: [Gnu-arch-users] OT: Slavery???, Tom Lord, 2003/11/14
- Re: [Gnu-arch-users] OT: Slavery???, Stephen J. Turnbull, 2003/11/18
- Re: [Gnu-arch-users] OT: Slavery???, Stephen J. Turnbull, 2003/11/17
- Re: [Gnu-arch-users] OT: Slavery???, Tom Lord, 2003/11/17
- Re: [Gnu-arch-users] OT: Slavery???, Stephen J. Turnbull, 2003/11/19
- [Gnu-arch-users] DAV login problem (and a fix),
Yasushi Saito - at home <=
- Re: [Gnu-arch-users] DAV login problem (and a fix), Tom Lord, 2003/11/19
- Re: [Gnu-arch-users] DAV login problem (and a fix), Robert Collins, 2003/11/19
- Re: [Gnu-arch-users] DAV login problem (and a fix), Robin Farine, 2003/11/19
- Re: [Gnu-arch-users] DAV login problem (and a fix), Yasushi Saito - at home, 2003/11/19
- Re: [Gnu-arch-users] DAV login problem (and a fix), Robin Farine, 2003/11/19
- Re: [Gnu-arch-users] DAV login problem (and a fix), Robin Farine, 2003/11/19
- Re: [Gnu-arch-users] OT: Slavery???, Tom Lord, 2003/11/19
- Re: [Gnu-arch-users] OT: Slavery???, Stephen J. Turnbull, 2003/11/19
- Re: [Gnu-arch-users] OT: Slavery???, Tom Lord, 2003/11/23
- Re: [Gnu-arch-users] OT: Slavery???, Peter Conrad, 2003/11/24