Bug 21791 - Ошибки в логах bacula "message.c:485 Mail prog: mail: /bin/csh: No such file or directory"
Summary: Ошибки в логах bacula "message.c:485 Mail prog: mail: /bin/csh: No such file ...
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: mailx (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-30 19:27 MSD by sl-linux
Modified: 2009-10-01 13:25 MSD (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sl-linux 2009-09-30 19:27:49 MSD
в логах bacula ошибки про csh и mail:

30-Sep 17:49 localhost JobId 1: message.c:485 Mail prog: mail: /bin/csh: No such file or directory
30-Sep 17:49 localhost JobId 1: message.c:485 Mail prog: "~/.mailrc": No match.
Comment 1 inger@altlinux.org 2009-09-30 19:57:22 MSD
char *
value(char *name)
{
        int str_isupper(const char *s) {
                while (*s && isupper(*s)) s++;
                return !*s;
        }
        struct var *vp;
        char *env;

        if ((vp = lookup(name)) != NULL)
                return(vp->v_value);
        else if ((env = getenv(name)))
                return(str_isupper(name) ? env : NULL);
        /* not set, see if we can provide a default */
        else if (strcmp(name, "SHELL") == 0)
                return(_PATH_CSHELL);
        else if (strcmp(name, "LISTER") == 0)
                return(_PATH_LS);
        else if (strcmp(name, "PAGER") == 0)
                return(_PATH_MORE);
        else
                return(NULL);
}

--
Кажется пора поменять дефолты ;)
Видимо надо делать _PATH_BSHELL (/bin/sh) ;)
Comment 2 Dmitry V. Levin 2009-09-30 22:58:15 MSD
(In reply to comment #1)
> Кажется пора поменять дефолты ;)
> Видимо надо делать _PATH_BSHELL (/bin/sh) ;)

Да, пора. :)
Comment 3 Repository Robot 2009-10-01 13:25:52 MSD
mailx-8.1.2-alt6 -> sisyphus:

* Thu Oct 01 2009 Stanislav Ievlev <inger@altlinux> 8.1.2-alt6

- change shell defaults (closes: #21791)