ALT Linux Bugzilla
– Attachment 2146 Details for
Bug 12564
minilogd создает /dev/log ограниченного доступа
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Logger program
logger.c (text/plain), 298 bytes, created by
enp
on 2007-08-15 09:45:31 MSD
(
hide
)
Description:
Logger program
Filename:
MIME Type:
Creator:
enp
Created:
2007-08-15 09:45:31 MSD
Size:
298 bytes
patch
obsolete
>#include <stdlib.h> >#include <stdio.h> >#include <syslog.h> > >int main(int argc, char **argv) >{ > char message[100]; > srand((unsigned)time(NULL)); > sprintf(message, "Test log message : %d", rand()); > openlog(argv[0], 0, LOG_DAEMON); > syslog(LOG_DAEMON | LOG_INFO, message); > closelog(); > return 0; >}
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 Raw
Actions:
View
Attachments on
bug 12564
: 2146 |
2147
|
2148