search for: ex_oserr

Displaying 9 results from an estimated 9 matches for "ex_oserr".

2004 Jan 13
1
tftpd-hpa suggestions
Hello, Peter and others! there are some issues regarding the tftp-hpa server: 1. Running as Windows service seems to require that the application does not detach (otherwise "net start" says smth. like "could not start, the service didn't report any errors"). The attached patch adds the option "-n", which can be used to have tftpd run in foreground.
2009 Jul 19
3
[PATCH] tftpd.c: write a pid file in standalone mode
.../* If we're running standalone, set up the input port */ if (standalone) { + FILE *pf; #ifdef HAVE_IPV6 if (ai_fam != AF_INET6) { #endif @@ -702,6 +712,14 @@ int main(int argc, char **argv) syslog(LOG_ERR, "cannot daemonize: %m"); exit(EX_OSERR); } + set_signal(SIGTERM, handle_exit, 0); + set_signal(SIGINT, handle_exit, 0); + pf = fopen (pidfile, "w"); + if (!pf + || fprintf(pf, "%d\n", getpid()) < 0 + || fclose(pf)) { + syslog(LOG_ERR, "cannot wri...
2008 Sep 17
1
floppy disk controller broken
Hello, when testing FreeBSD-7.1-BETA i discovered that the floppy disk controller doesn't work correctly. Trying to format a floppy (perhaps with bad blocks) i get: Processing fdformat: ioctl(FD_FORM): Device not configured instead of the normal E letter. I then checked the same problem is present on FreeBSD-6.3 and it has been reported by Beech Rintoul (*) in 2006! Of course the floppy disk
2014 Jan 30
2
Issue with running tftpd-hpa in inetd mode?
...p that has this at the end: /* * Now that we have read the request packet from the UDP * socket, we fork and go back to listening to the socket. */ pid = fork(); if (pid < 0) { syslog(LOG_ERR, "fork: %m"); exit(EX_OSERR); /* Return to inetd, just in case */ } else if (pid == 0) break; /* Child exit, parent loop */ } /* Child process: handle the actual request here */ What I noticed was, every request I did would work okay, but would leave the parent process waiting fo...
2009 Sep 05
5
[tftpd PATCH 0/5] pidfile option and syslog fix
Hi, This is my current patch queue. The patches are independent, AFAIK, so feel free to cherry-pick or reject them independently. The bottom one was needed for a successful build here; the top one contains all the modifications you requested on IRC, and more. Meanwhile I hit one of the four stray TABs in tftpd.c, and decided to get rid of them. Comments welcome. --- Ferenc Wagner (5):
2009 Jul 04
2
[PATCH] Create /var/run/tftpd-hpa.pid in standalone mode
...f we're running standalone, set up the input port */ if (standalone) { + FILE *pidfile; #ifdef HAVE_IPV6 if (ai_fam != AF_INET6) { #endif @@ -702,6 +703,12 @@ int main(int argc, char **argv) syslog(LOG_ERR, "cannot daemonize: %m"); exit(EX_OSERR); } + pidfile = fopen ("/var/run/tfpd-hpa.pid","w"); + if (!pidfile + || fprintf(pidfile, "%d\n", getpid()) < 0 + || fclose(pidfile)) { + syslog(LOG_ERR, "cannot write pid file: %m"); + } if...
2014 Jan 30
0
Issue with running tftpd-hpa in inetd mode?
.../* > * Now that we have read the request packet from the UDP > * socket, we fork and go back to listening to the socket. > */ > pid = fork(); > if (pid < 0) { > syslog(LOG_ERR, "fork: %m"); > exit(EX_OSERR); /* Return to inetd, just in case */ > } else if (pid == 0) > break; /* Child exit, parent loop */ > } > > /* Child process: handle the actual request here */ > > What I noticed was, every request I did would work okay, but would...
1996 Nov 17
5
Sendmail 8.8.2 exploit.
Hm, look what I got hold of today.. Works if sendmail is mode 4111 or similar: #! /bin/sh # # # Hi ! # This is exploit for sendmail smtpd bug # (ver. 8.7-8.8.2 for FreeBSD, Linux and may be other platforms). # This shell script does a root shell in /tmp directory. # If you have any problems with it, drop me a letter. #
2003 Apr 13
2
Problem in getting tftp transfer to succeed
...nt out: /* Set up the supplementary group access list if possible */ /* /etc/group still need to be accessible at this point */ #ifdef HAVE_INITGROUPS setrv = initgroups(user, pw->pw_gid); if ( setrv ) { syslog(LOG_ERR, "cannot set groups for user %s", user); exit(EX_OSERR); } #else #ifdef HAVE_SETGROUPS if ( setgroups(0, NULL) ) { syslog(LOG_ERR, "cannot clear group list"); } #endif #endif because otherwise I couldn't get the daemon to function. I tested the tftdp with a tftp client on the command line and it works. Now when I try to loa...