Revision b0ddfd38 include/PoolObjectSQL.h

View differences:

include/PoolObjectSQL.h
69 69
        return uid;
70 70
    };
71 71

  
72
    // TODO: Check if uid == -1?
73
    // What happens with user, is the user his owner, or uid = -1?
74
    int set_uid(int _uid)
75
    {
76
        uid = _uid;
77
        return 0;
78
    }
79

  
72 80
    int get_gid()
73 81
    {
74 82
        return gid;
75 83
    };
76 84

  
77
    void set_gid(int _gid)
85
    int set_gid(int _gid)
78 86
    {
87
        if( gid == -1 )
88
        {
89
            return -1;
90
        }
91

  
79 92
        gid = _gid;
93
        return 0;
80 94
    };
81 95

  
82 96
    /* --------------------------------------------------------------------- */

Also available in: Unified diff