Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 311137 Details for
Bug 454261
who does not determine user's message status correctly
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Additional check of terminal's group
coreutils-6.9-who.patch (text/plain), 580 bytes, created by
Piotr Gackiewicz
on 2008-07-07 10:53:06 UTC
(
hide
)
Description:
Additional check of terminal's group
Filename:
MIME Type:
Creator:
Piotr Gackiewicz
Created:
2008-07-07 10:53:06 UTC
Size:
580 bytes
patch
obsolete
>--- coreutils-6.9/src/who.c 2008-07-07 12:37:04.000000000 +0200 >+++ coreutils-6.9-patched/src/who.c 2008-07-07 12:35:59.000000000 +0200 >@@ -29,6 +29,7 @@ > #include <stdio.h> > > #include <sys/types.h> >+#include <grp.h> > #include "system.h" > > #include "canon-host.h" >@@ -348,7 +349,9 @@ > > if (stat (line, &stats) == 0) > { >- mesg = (stats.st_mode & S_IWGRP) ? '+' : '-'; >+ struct group *ttygr=getgrnam("tty"); >+ >+ mesg = ((stats.st_mode & S_IWGRP) && ttygr && stats.st_gid==ttygr->gr_gid) ? '+' : '-'; > last_change = stats.st_atime; > } > else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 454261
: 311137