Home | History | Annotate | Download | only in mount_portal
History log of /src/sbin/mount_portal/pt_file.c
RevisionDateAuthorComments
 1.20  23-May-2019  kre PR bin/54222

Don't use portal_node_reclaim() inappropriately. It frees data we
did not allocate, but which might have been allocated by someone else.

While here, various other cleanups (avoid losing fd's if fork fails,
don't compose mangled st_mode S_IFMT values - puffs or's in what it
thinks is correct to the value we set, one case I saw was producing
0110600 for the mode, the 011 isn't any defined type at all - I'd
never seen ls print a '?' as the first char of ls -l output before!

This is still not really correct, but is I believe, better than before.
 1.19  10-May-2017  christos branches: 1.19.10;
set only the effective user id to the user id of the requesting user so that
we can go back to the original uid later.
 1.18  19-Oct-2013  christos branches: 1.18.16;
fix unused variable warnings.
 1.17  02-Jul-2007  pooka branches: 1.17.36; 1.17.42;
The kernel socket isn't used by any of the providers, and it's a bit
hard to imagine how it could be used, so get rid of it.
 1.16  09-Feb-2005  xtraeme Kill __P(), use ANSI function declarations, constify; WARNS=3.
 1.15  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.
 1.14  13-Jul-2003  itojun use bounded string ops
 1.13  10-Jan-2001  lukem be consistent (both internally and with other programs):
log_err fatal errors
log_warning non-fatal errors & warnings
log_debug debug messages (#ifdef DEBUG)
 1.12  15-Jan-2000  bgrayson Fix security problem noticed by Alaric Williams:
when giving up root credentials, I was setting the egid and euid,
and forgot to also do gid and uid.
 1.11  16-Aug-1999  bgrayson Changes include:
- user mounts of fs namespace are now possible.
- if read/write access is not possible, fall back to read-only.
- use lose_credentials() as a common method to change UID etc.
(it is also used by the rfilter and wfilter code)
- some KNF changes, while I was here.
 1.10  21-Sep-1997  enami Cosmetic changes:

- Use syslog(..., "...%m") instead of syslog(..., "...%s",
strerror(errno)).
- Don't put a simple and single statement into a block.
- Indent continuation line by four space.
- Add an empty line at the beginning of a function if it doesn't have
local variable.
- Use err() or errx() instead of fprintf(stderr, "progname: ....\n")
and exit() (there was two place left).
- Use MOUNT_PORTAL, which is defined as "portal" in sys/mount.h,
instead of using "portal" directly.
- Fold long line to fit column < 80.
 1.9  16-Sep-1997  lukem resolve conflicts from lite-2 merge
 1.8  15-Sep-1997  lukem * KNF-ify
* update for WARNS=1
* getopt returns -1 not EOF
* fix .Nm usage
 1.7  06-Jun-1995  mycroft Fix debugging printf.
 1.6  06-Jun-1995  mycroft Use setegid() explicitly, just to be safe.
 1.5  23-Apr-1995  cgd slightly clean rcs ids, etc.
 1.4  18-Mar-1995  cgd convert to new RCS Id conventions; reduce my headache
 1.3  08-Jun-1994  mycroft Update from 4.4-Lite, with local changes.
 1.2  13-Apr-1994  cgd kill warning
 1.1  12-Jan-1994  cgd branches: 1.1.1;
mount_portal command, from jsp
 1.1.1.2  16-Sep-1997  lukem imported from lite-2
 1.1.1.1  13-Jun-1994  mycroft Import 4.4-Lite version.
 1.17.42.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.17.36.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.18.16.1  11-May-2017  pgoyette Sync with HEAD
 1.19.10.1  10-Jun-2019  christos Sync with HEAD

RSS XML Feed