Ignore:
Timestamp:
Sep 30, 2008, 7:14:08 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/nsswitch/wb_common.c

    r71 r158  
    183183       
    184184        if (lstat(dir, &st) == -1) {
     185                errno = ENOENT;
    185186                return -1;
    186187        }
     
    188189        if (!S_ISDIR(st.st_mode) ||
    189190            (st.st_uid != 0 && st.st_uid != geteuid())) {
     191                errno = ENOENT;
    190192                return -1;
    191193        }
     
    211213
    212214        if (lstat(path, &st) == -1) {
     215                errno = ENOENT;
    213216                return -1;
    214217        }
     
    218221        if (!S_ISSOCK(st.st_mode) ||
    219222            (st.st_uid != 0 && st.st_uid != geteuid())) {
     223                errno = ENOENT;
    220224                return -1;
    221225        }
     
    364368       
    365369        if (winbind_open_pipe_sock(recursing, need_priv) == -1) {
     370                errno = ENOENT;
    366371                return -1;
    367372        }
     
    571576        if (write_sock(request, sizeof(*request),
    572577                       request->flags & WBFLAG_RECURSE, need_priv) == -1) {
     578                /* Set ENOENT for consistency.  Required by some apps */
     579                errno = ENOENT;
     580               
    573581                return NSS_STATUS_UNAVAIL;
    574582        }
     
    577585            (write_sock(request->extra_data.data, request->extra_len,
    578586                        request->flags & WBFLAG_RECURSE, need_priv) == -1)) {
     587                /* Set ENOENT for consistency.  Required by some apps */
     588                errno = ENOENT;
     589
    579590                return NSS_STATUS_UNAVAIL;
    580591        }
     
    600611        /* Wait for reply */
    601612        if (read_reply(response) == -1) {
     613                /* Set ENOENT for consistency.  Required by some apps */
     614                errno = ENOENT;
     615
    602616                return NSS_STATUS_UNAVAIL;
    603617        }
Note: See TracChangeset for help on using the changeset viewer.