| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed macros for temporarily relinquishing and restoring setuid/setgid
privileges so that they never change the real user and group IDs of
the calling process.
The setre[ug]id() calls are still used in the REDUCE_PERM macro (with
the r[ug]id arguments of -1) so that the call changes the saved user
and group IDs of the process to that specified.
Also, the panic() and perr() functions had insufficient privileges to
delete the problematic file under /var/at.
Notes:
svn path=/head/; revision=82973
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
documented behavior. Only a certain set of file flags were recognized,
and "no" flags did not match files that have corresponding flags bits
turned off.
Fix and extend the -flags functionality as follows:
: -flags [-|+]<flags>,<notflags>
: The flags are specified using symbolic names (see chflags(1)).
: Those with the "no" prefix (except "nodump") are said to be
: <notflags>. Flags in <flags> are checked to be set, and flags in
: <notflags> are checked to be not set. Note that this is different
: from -perm, which only allows the user to specify mode bits that
: are set.
:
: If flags are preceded by a dash (``-''), this primary evaluates
: to true if at least all of the bits in <flags> and none of the bits
: in <notflags> are set in the file's flags bits. If flags are pre-
: ceded by a plus (``+''), this primary evaluates to true if any of
: the bits in <flags> is set in the file's flags bits, or any of the
: bits in <notflags> is not set in the file's flags bits. Otherwise,
: this primary evaluates to true if the bits in <flags> exactly match
: the file's flags bits, and none of the <flags> bits match those of
: <notflags>.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=82972
|
|
|
|
| |
Notes:
svn path=/head/; revision=82956
|
|
|
|
|
|
|
|
|
|
| |
options.
PR: 30275
Reviewed by: jake
Notes:
svn path=/head/; revision=82947
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fseek -> fseeko
ftell -> ftello
fseek(x, 0L, 0) -> rewind(x)
NOTE: that fseek/ftell not works for >long offsets per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
[EOVERFLOW] For ftell ( ), the current file offset cannot be represented
correctly in an object of type long.
Notes:
svn path=/head/; revision=82846
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fseek -> fseeko
ftell -> ftello
NOTE: fseek/ftell not works for >long offsets per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
[EOVERFLOW] For ftell ( ), the current file offset cannot be represented
correctly in an object of type long.
Notes:
svn path=/head/; revision=82793
|
|
|
|
| |
Notes:
svn path=/head/; revision=82772
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
long -> off_t
fseek -> fseeko
NOTE: that fseek not works for >long offsets files per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
Notes:
svn path=/head/; revision=82767
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
strtol -> strtoll
fseek -> fseeko
NOTE: that fseek not works for >long offsets files per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
Notes:
svn path=/head/; revision=82766
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
long -> off_t
strtol -> strtoll
fseek -> fseeko
NOTE: that fseek not works for >long offsets files per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
Notes:
svn path=/head/; revision=82762
|
|
|
|
|
|
|
|
|
| |
Obtained from: OpenBSD
Reviewed by: audit
MFC after: 2 weeks
Notes:
svn path=/head/; revision=82722
|
|
|
|
|
|
|
|
|
|
|
| |
an infinite spin loop when the terminal window is forcibly blown away.
PR: 29553
Reported by: Sung N. Cho <sucho2@vt.edu>
MFC after: 1 day
Notes:
svn path=/head/; revision=82694
|
|
|
|
| |
Notes:
svn path=/head/; revision=82664
|
|
|
|
|
|
|
| |
PR: docs/30237
Notes:
svn path=/head/; revision=82662
|
|
|
|
| |
Notes:
svn path=/head/; revision=82649
|
|
|
|
|
|
|
|
|
| |
as seems to be the trend.
(Thanks Josef. :-)
Notes:
svn path=/head/; revision=82608
|
|
|
|
|
|
|
|
|
| |
a check on the final snprintf and reduces duplicated code.
Submitted by: brian
Notes:
svn path=/head/; revision=82579
|
|
|
|
|
|
|
|
| |
Broken in the "close a PR" race, in revision 1.30.
Note that the patch in the PR did not have this bug!
Notes:
svn path=/head/; revision=82569
|
|
|
|
|
|
|
| |
to be the trend.
Notes:
svn path=/head/; revision=82568
|
|
|
|
|
|
|
| |
logic that are handled by PAM. Fix documentation to reflect this.
Notes:
svn path=/head/; revision=82562
|
|
|
|
| |
Notes:
svn path=/head/; revision=82545
|
|
|
|
|
|
|
|
| |
Requests through a proxy are still broken for URIs that contain
blanks, since this required a bigger rewrite of the whole function.
Notes:
svn path=/head/; revision=82544
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
asprintf(3) when creating the request string, as the length of
a path is defined as unlimited by the standard and limiting the
total request to 4K is awfully arbitrary.
PR: 30054
Submitted by: Joseph Mallett <jmallett@xMach.org>
MFC after: 8 days
Notes:
svn path=/head/; revision=82540
|
|
|
|
|
|
|
|
|
| |
o This fixes a memory leak that can occur on some URL's.
Pointy hat to: brian
Notes:
svn path=/head/; revision=82528
|
|
|
|
| |
Notes:
svn path=/head/; revision=82497
|
|
|
|
|
|
|
|
|
|
| |
otherwise, if the very first fgetc() already yielded EOF, the returned
string won't get terminated at all.
MFC after: 1 day
Notes:
svn path=/head/; revision=82471
|
|
|
|
| |
Notes:
svn path=/head/; revision=82463
|
|
|
|
|
|
|
|
| |
PR: 30069
Submitted by: andrew@ugh.net.au
Notes:
svn path=/head/; revision=82462
|
|
|
|
| |
Notes:
svn path=/head/; revision=82325
|
|
|
|
|
|
|
| |
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=82224
|
|
|
|
|
|
|
| |
Mostly submitted by: bde
Notes:
svn path=/head/; revision=82187
|
|
|
|
|
|
|
| |
Reviewed by: ade
Notes:
svn path=/head/; revision=82148
|
|
|
|
| |
Notes:
svn path=/head/; revision=82088
|
|
|
|
|
|
|
| |
Spotted by: bde
Notes:
svn path=/head/; revision=82067
|
|
|
|
| |
Notes:
svn path=/head/; revision=82057
|
|
|
|
|
|
|
| |
Pointed out by: bde
Notes:
svn path=/head/; revision=82055
|
|
|
|
|
|
|
| |
Pointed out by: bde
Notes:
svn path=/head/; revision=82054
|
|
|
|
|
|
|
|
|
|
| |
The original (1.16) code was mostly correct, but this version is
far clearer.
Casts suggested to now be obfuscations by: bde
Notes:
svn path=/head/; revision=82051
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=81979
|
|
|
|
|
|
|
| |
Discussed with: ru
Notes:
svn path=/head/; revision=81971
|
|
|
|
|
|
|
|
| |
Also remove useless AUTHENTICATION code. We have never compiled this
here, and it is doubtful that it even works without crypto.
Notes:
svn path=/head/; revision=81964
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=81960
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=81956
|
|
|
|
|
|
|
| |
Pointy hat to: kris
Notes:
svn path=/head/; revision=81947
|
|
|
|
|
|
|
| |
Set the default timeout to 120 seconds instead of 0 (no timeout).
Notes:
svn path=/head/; revision=81884
|
|
|
|
| |
Notes:
svn path=/head/; revision=81878
|
|
|
|
| |
Notes:
svn path=/head/; revision=81863
|
|
|
|
|
|
|
|
|
| |
Submitted by: ru (partial)
Obtained from: NetBSD (basic idea)
Reviewed by: bde, ru
Notes:
svn path=/head/; revision=81845
|
|
|
|
|
|
|
| |
Reviewed by: jdp
Notes:
svn path=/head/; revision=81811
|
|
|
|
|
|
|
|
| |
PR: bin/10980
MFC after: 2 weeks
Notes:
svn path=/head/; revision=81783
|