Displaying 16 results from an estimated 16 matches for "_path_maildir".
2001 Jun 21
0
Bug: OpenSSH (port.) daemon sets $MAIL incorrectly on Solaris (others?)
...quot;defines.h" includes <maillock.h>, and
under Solaris (and possibly other platforms on which HAVE_MAILLOCK_H is
defined), /usr/include/maillock.h defines MAILDIR in a manner which
includes the trailing slash:
#define MAILDIR "/var/mail/"
...
#if !defined(_PATH_MAILDIR) && defined(MAILDIR)
# define _PATH_MAILDIR MAILDIR
#endif /* !defined(_PATH_MAILDIR) && defined(MAILDIR) */
In session.c, this definition gets used to set the MAIL environment
variable:
snprintf(buf, sizeof buf, "%.200s/%.50s",
_PATH_MAILDIR, pw->...
2001 Apr 06
3
$MAIL surprise
I got email yesterday from a user who had run 'from' and got the message
"No mail in /home/stevev/$USER" (where $USER was that person's
username). At first I thought he had pilfered my .bashrc, but on
further investigation I discovered that my home directory path had been
compiled in to sshd, because the configuration tests assume that the
directory part of $MAIL is the
1999 Dec 22
2
ANNOUNCE: openssh-1.2.1pre19
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OpenSSH-1.2.1pre19 has been released.
http://violet.ibs.com.au/openssh/files/MIRRORS.html
The major change in this version is the integration of Andre Lucas'
HPUX support. This adds a few other options which may be useful
on other systems.
Changelog:
19991221
- Integration of large HPUX patch from Andre Lucas
<andre.lucas at
1999 Dec 22
2
ANNOUNCE: openssh-1.2.1pre19
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OpenSSH-1.2.1pre19 has been released.
http://violet.ibs.com.au/openssh/files/MIRRORS.html
The major change in this version is the integration of Andre Lucas'
HPUX support. This adds a few other options which may be useful
on other systems.
Changelog:
19991221
- Integration of large HPUX patch from Andre Lucas
<andre.lucas at
2002 Jun 24
1
remove --with-rsh
...eaders)
Index: defines.h
===================================================================
RCS file: /var/cvs/openssh/defines.h,v
retrieving revision 1.91
diff -u -r1.91 defines.h
--- defines.h 22 Jun 2002 00:27:00 -0000 1.91
+++ defines.h 24 Jun 2002 00:50:33 -0000
@@ -316,14 +316,6 @@
# define _PATH_MAILDIR MAILDIR
#endif /* !defined(_PATH_MAILDIR) && defined(MAILDIR) */
-#ifndef _PATH_RSH
-# ifdef RSH_PATH
-# define _PATH_RSH RSH_PATH
-# else /* RSH_PATH */
-# define _PATH_RSH "/usr/bin/rsh"
-# endif /* RSH_PATH */
-#endif /* _PATH_RSH */
-
#ifndef _PATH_NOLOGIN
# define _PAT...
2001 Mar 29
3
Patches for OpenSSH 2.5.2p2: evaluate /etc/default/login, makefiles manpages
...n_env[i]; i++)
+ xfree(default_login_env[i]);
+ }
+ xfree(default_login_env);
+}
+
#if defined(HAVE_GETUSERATTR)
/*
* AIX-specific login initialisation
@@ -1213,12 +1361,26 @@
# endif /* HAVE_CYGWIN */
#endif /* HAVE_LOGIN_CAP */
- snprintf(buf, sizeof buf, "%.200s/%.50s",
- _PATH_MAILDIR, pw->pw_name);
+ /*
+ * Set environment variable MAIL.
+ * _PATH_MAILDIR may have a '/' appended (e.g. on Solaris)
+ * or have no '/' at the end.
+ */
+ snprintf(buf, sizeof buf, "%.200s%s%.50s",
+ _PATH_MAILDIR,
+ strlen(_PATH_MAILDIR) > 0
+ &...
2001 Aug 13
1
[PATCH] Maildir support
...;env, &envsize, "USER", pw->pw_name);
child_set_env(&env, &envsize, "LOGNAME", pw->pw_name);
@@ -1245,10 +1323,22 @@
# endif /* HAVE_CYGWIN */
#endif /* HAVE_LOGIN_CAP */
+#ifndef MAILDIR_FORMAT
snprintf(buf, sizeof buf, "%.200s/%.50s",
_PATH_MAILDIR, pw->pw_name);
+#else
+ snprintf(buf, sizeof buf, "%.240s/Maildir",
+ pw->pw_dir);
+ /*
+ * Check if $HOME/Maildir exists, otherwise set $MAIL to
+ * _PATH_MAILDIR/$USER
+ */
+ if (stat(buf, &mailstat) != 0) {
+ snprintf(buf, sizeof buf, "%.200s/%.50s",
+...
2006 Oct 02
1
[Bug 1243] Multiple including of paths.h on AIX 5.1 systems.
...ines.h.
"/usr/include/paths.h", line 52.9: 1506-213 (S) Macro name _PATH_CSHELL
cannot be redefined.
"/usr/include/paths.h", line 52.9: 1506-358 (I) "_PATH_CSHELL" is
defined on line 325 of defines.h.
"/usr/include/paths.h", line 57.9: 1506-213 (S) Macro name
_PATH_MAILDIR cannot be redefined.
"/usr/include/paths.h", line 57.9: 1506-358 (I) "_PATH_MAILDIR" is
defined on line 359 of defines.h.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
1999 Dec 21
0
Problem with UTMP recording
...quot;/var/adm/wtmp"
# endif
# endif
#endif
#ifndef _PATH_BSHELL
# define _PATH_BSHELL "/bin/sh"
#endif
#ifndef _PATH_STDPATH
# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:"
#endif
#ifndef _PATH_DEVNULL
# define _PATH_DEVNULL "/dev/null"
#endif
#ifndef _PATH_MAILDIR
# ifdef MAILDIR
# define _PATH_MAILDIR MAILDIR
# endif
#endif
#ifndef MAX
# define MAX(a,b) (((a)>(b))?(a):(b))
# define MIN(a,b) (((a)<(b))?(a):(b))
#endif
#ifndef timersub
#define timersub(a, b, result) \
do { \
(result)->tv_sec = (a)->tv_sec...
2000 Feb 27
0
[PATCH] Fix login.conf, expiration, BSD compatibility in OpenSSH
...ze temp environment */
+ envsize = 64;
+ env = xmalloc(envsize * sizeof(char *));
+ env[0] = NULL;
+
+ child_set_env(&env, &envsize, "PATH",
+ (pw->pw_uid == 0) ?
+ _PATH_STDPATH : _PATH_DEFPATH);
+
+ snprintf(buf, sizeof buf, "%.200s/%.50s",
+ _PATH_MAILDIR, pw->pw_name);
+ child_set_env(&env, &envsize, "MAIL", buf);
+
+ if (getenv("TZ"))
+ child_set_env(&env, &envsize, "TZ", getenv("TZ"));
+
+ /* Save parent environment */
+ tmpenv = environ;
+ environ = env;
+
+ if (setusercontext(lc...
1999 Nov 23
2
Fixes for Solaris
...ifdef HAVE_MAILLOCK_H
+#include <maillock.h>
+#endif
+
#ifndef SHUT_RDWR
enum
{
@@ -174,6 +182,10 @@
#ifndef _PATH_STDPATH
# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:"
+#endif
+
+#ifndef _PATH_DEVNULL
+# define _PATH_DEVNULL "/dev/null"
#endif
#ifndef _PATH_MAILDIR
Index: configure.in
===================================================================
RCS file: /var/cvs/openssh/configure.in,v
retrieving revision 1.25
retrieving revision 1.27
diff -u -r1.25 -r1.27
--- configure.in 1999/11/22 05:11:05 1.25
+++ configure.in 1999/11/23 00:24:32 1.27
@@ -55,7 +55,...
1999 Nov 22
0
Solaris 7 and sshd.c / HAVE_MAILLOCK_H
maillock.h defines MAILDIR, MAILDIR is needed in config.h, and config.h
needs to be included after maillock.h...
#ifdef HAVE_MAILLOCK_H
# include <maillock.h>
# include "config.h"
#endif
In order to get _PATH_MAILDIR defined properly...
Marc G. Fournier marc.fournier at acadiau.ca
Senior Systems Administrator Acadia University
"These are my opinions, which are not necessarily shared by my employer"
2000 Aug 01
0
MAIL on Solaris
...var/mail//user, (with double // before user name),which breaks
some MUAs, e.g. emacs' Rmail. The problem lies in the fact that
/usr/include/maillock.h has:
#define MAILDIR "/var/mail/"
while session.c adds another /
snprintf(buf, sizeof buf, "%.200s/%.50s",
_PATH_MAILDIR, pw->pw_name);
This only occurs on systems with maillock.h (i.e. not on linux)
--
Luc Dierckx
Systems Manager
Laboratory for Computational Intelligence
University of British Columbia
2006 Aug 30
30
Testing for the 4.4p1 release
Hi,
The 4.4p1 release is approaching now, so we are now asking people to
actively test snapshots or CVS and report back to the mailing list.
Snapshots are available from http://www.mindrot.org/openssh_snap or
from any of the mirrors listed on http://www.openssh.org/portable.html
The latter page also includes instructions for checking out portable
OpenSSH via anonymous CVS.
This release
2000 Oct 07
0
OpenSSH changes for BSD/OS
...ntext set for us */
+ if (getenv("PATH"))
+ child_set_env(&env, &envsize, "PATH", getenv("PATH"));
+ #else
child_set_env(&env, &envsize, "PATH", _PATH_STDPATH);
+ #endif
snprintf(buf, sizeof buf, "%.200s/%.50s",
_PATH_MAILDIR, pw->pw_name);
Index: ssh.c
===================================================================
RCS file: /master/contrib/openssh/ssh.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 ssh.c
*** ssh.c 2000/08/17 16:18:00 1.1.1.1
--- ssh.c 2000/10/06 20:44:07
***************
*** 492,497 ****
--- 4...
1999 Nov 19
1
[solaris 7 patch] resubmit and extended ...
Okay, everything as the first large one I sent today, with a few extra
mods. _PATH_MAILDIR is only used in sshd.c, that I can see, so moved the
#ifdef from config.h.in to there.
several files had __progname defined in the middle of the code, as well as
at the top of the code, so cleaned those out.
all the fixes for u_int32_t -> uint32_t and u_int16_t -> uint16_t, plus
added appro...