OSDN Git Service

Tito posted a devfsd error message fix. It's highly deprecated and will
authorRob Landley <rob@landley.net>
Tue, 7 Jun 2005 03:47:00 +0000 (03:47 -0000)
committerRob Landley <rob@landley.net>
Tue, 7 Jun 2005 03:47:00 +0000 (03:47 -0000)
commit06813d066b379ce74801a6c125213a03104fc4e1
treef5cb60ba6610e76630b09aede67bea3188d12c91
parent16cd02e01ed66758935250d8d7c0bee90608807c
Tito posted a devfsd error message fix.  It's highly deprecated and will
presumably be removed eventually (use udev), but as long as it's in there.

Tito says:

The sense of this patch is to call:
read_config_file_err:
#ifdef CONFIG_DEVFSD_VERBOSE
    msg_logger(((optional ==  0 ) && (errno == ENOENT))? DIE : NO_DIE, LOG_ERR, "read config file: %s: %m\n", path);
#else
    if(optional ==  0  && errno == ENOENT)
        exit(EXIT_FAILURE);
#endif

just after the failure of the  call that set errno ( stat and fopen)
to avoid false error messages.
miscutils/devfsd.c