The big character set handling changeover!
[samba.git] / source / libsmb / smberr.c
index c284d18ba67a8f0daebf6fbb8c98627347d7583b..924fa76d71dfc572d218cdbe96ac674d5279f327 100644 (file)
@@ -18,9 +18,7 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#ifdef SYSLOG
-#undef SYSLOG
-#endif
+#define NO_SYSLOG
 
 #include "includes.h"
 
@@ -58,6 +56,7 @@ err_code_struct dos_msgs[] = {
   {"ERRnofiles",18,"A File Search command can find no more files matching the specified criteria."},
   {"ERRbadshare",32,"The sharing mode specified for an Open conflicts with existing  FIDs  on the file."},
   {"ERRlock",33,"A Lock request conflicted with an existing lock or specified an  invalid mode,  or an Unlock requested attempted to remove a lock held by another process."},
+  {"ERRunsup", 50, "The operation is unsupported"},
   {"ERRnosuchshare", 67, "You specified an invalid share name"},
   {"ERRfilexists",80,"The file named in a Create Directory, Make  New  File  or  Link  request already exists."},
   {"ERRbadpipe",230,"Pipe invalid."},
@@ -165,10 +164,12 @@ char *smb_errstr(char *inbuf)
              if (num == err[j].code)
                {
                  if (DEBUGLEVEL > 0)
-                   slprintf(ret, sizeof(ret) - 1, "%s - %s (%s)",err_classes[i].class,
-                           err[j].name,err[j].message);
+                   slprintf(ret, sizeof(ret) - 1, "%s - %s (%s)",
+                            err_classes[i].class,
+                            err[j].name,err[j].message);
                  else
-                   slprintf(ret, sizeof(ret) - 1, "%s - %s",err_classes[i].class,err[j].name);
+                   slprintf(ret, sizeof(ret) - 1, "%s - %s",
+                            err_classes[i].class,err[j].name);
                  return ret;
                }
          }