Commit graph

4 commits

Author SHA1 Message Date
cinap_lenrek
ac88ce4f7f make bind(2) error handling consistent
The mount() and bind() syscalls return -1 on error,
and the mountid sequence number on success.

The manpage states that the mountid sequence number
is a positive integer, but the kernels implementation
currently uses a unsigned 32-bit integer and does not
guarantee that the mountid will not become negative.

Most code just cares about the error, so test for
the -1 error value only.
2020-05-02 17:32:01 +02:00
cinap_lenrek
71a1d11a81 cmd/ip/*: chown the network connection after authentication
for servers that handle incoming network connections and authentication,
change the owner of the network connection file to the authenticated user
after successfull authentication.

note that we set the permissions as well to 0660 because old devip used
to unconditionally set the bits.
2019-09-21 23:36:44 +02:00
cinap_lenrek
f616c63b39 imap4d: simplify auth with encodefmt (backport from 9front) 2017-03-12 18:50:27 +01:00
cinap_lenrek
963cfc9a6f merging erik quanstros nupas 2017-03-12 17:15:03 +01:00