Bug 30111

Summary: Bugfix for net/sendfile port
Product: Ports & Packages Reporter: sec
Component: Individual Port(s)Assignee: freebsd-ports (Nobody) <ports>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description sec 2001-08-26 20:40:01 UTC
The net/sendfile port has been broken for some time. Users beside root
couldn't receive any files.

This is because sete[ug]id() return (-1) on FreeBSD when asked to change
to the e[ug]id the Process already has.

This patch works around the problem, and makes the program usable again.

How-To-Repeat: 
Send a file to a known user on an affected system:

matrix:~>sendfile /etc/motd user@affected.system
%sendfile-Info: opening connection to saft://affected.system/user
%sendfile-Fatalerror: server error: Internal error on setegid(1001): Operation not permitted
Comment 1 Akinori MUSHA freebsd_committer freebsd_triage 2001-09-02 16:19:45 UTC
State Changed
From-To: open->closed

Committed, thanks! (PORTREVISION bumped)