~lefteris-nikoltsios/+junk/samba-lp1016895

« back to all changes in this revision

Viewing changes to source4/heimdal/lib/com_err/com_err.c

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
struct et_list *_et_list = NULL;
44
44
 
45
45
 
46
 
const char *
 
46
KRB5_LIB_FUNCTION const char * KRB5_LIB_CALL
47
47
error_message (long code)
48
48
{
49
49
    static char msg[128];
61
61
    return msg;
62
62
}
63
63
 
64
 
int
 
64
KRB5_LIB_FUNCTION int KRB5_LIB_CALL
65
65
init_error_table(const char **msgs, long base, int count)
66
66
{
67
67
    initialize_error_table_r(&_et_list, msgs, count, base);
68
68
    return 0;
69
69
}
70
70
 
71
 
static void
 
71
static void KRB5_CALLCONV
72
72
default_proc (const char *whoami, long code, const char *fmt, va_list args)
73
73
    __attribute__((__format__(__printf__, 3, 0)));
74
74
 
75
 
static void
 
75
static void KRB5_CALLCONV
76
76
default_proc (const char *whoami, long code, const char *fmt, va_list args)
77
77
{
78
78
    if (whoami)
86
86
 
87
87
static errf com_err_hook = default_proc;
88
88
 
89
 
void
 
89
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
90
90
com_err_va (const char *whoami,
91
91
            long code,
92
92
            const char *fmt,
95
95
    (*com_err_hook) (whoami, code, fmt, args);
96
96
}
97
97
 
98
 
void
 
98
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
99
99
com_err (const char *whoami,
100
100
         long code,
101
101
         const char *fmt,
107
107
    va_end(ap);
108
108
}
109
109
 
110
 
errf
 
110
KRB5_LIB_FUNCTION errf KRB5_LIB_CALL
111
111
set_com_err_hook (errf new)
112
112
{
113
113
    errf old = com_err_hook;
120
120
    return old;
121
121
}
122
122
 
123
 
errf
 
123
KRB5_LIB_FUNCTION errf KRB5_LIB_CALL
124
124
reset_com_err_hook (void)
125
125
{
126
126
    return set_com_err_hook(NULL);
134
134
 
135
135
static char buf[6];
136
136
 
137
 
const char *
 
137
KRB5_LIB_FUNCTION const char * KRB5_LIB_CALL
138
138
error_table_name(int num)
139
139
{
140
140
    int ch;
156
156
    return(buf);
157
157
}
158
158
 
159
 
void
 
159
KRB5_LIB_FUNCTION void KRB5_LIB_CALL
160
160
add_to_error_table(struct et_list *new_table)
161
161
{
162
162
    struct et_list *et;