~lefteris-nikoltsios/+junk/samba-lp1016895

« back to all changes in this revision

Viewing changes to source4/heimdal/lib/asn1/lex.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:
1
1
#include "config.h"
2
2
 
3
 
#line 3 "heimdal/lib/asn1/lex.c"
 
3
#line 3 "lex.c"
4
4
 
5
5
#define  YY_INT_ALIGNED short int
6
6
 
9
9
#define FLEX_SCANNER
10
10
#define YY_FLEX_MAJOR_VERSION 2
11
11
#define YY_FLEX_MINOR_VERSION 5
12
 
#define YY_FLEX_SUBMINOR_VERSION 34
 
12
#define YY_FLEX_SUBMINOR_VERSION 35
13
13
#if YY_FLEX_SUBMINOR_VERSION > 0
14
14
#define FLEX_BETA
15
15
#endif
54
54
typedef unsigned char flex_uint8_t; 
55
55
typedef unsigned short int flex_uint16_t;
56
56
typedef unsigned int flex_uint32_t;
57
 
#endif /* ! C99 */
58
57
 
59
58
/* Limits of integral types. */
60
59
#ifndef INT8_MIN
85
84
#define UINT32_MAX             (4294967295U)
86
85
#endif
87
86
 
 
87
#endif /* ! C99 */
 
88
 
88
89
#endif /* ! FLEXINT_H */
89
90
 
90
91
#ifdef __cplusplus
141
142
 
142
143
/* Size of default input buffer. */
143
144
#ifndef YY_BUF_SIZE
 
145
#ifdef __ia64__
 
146
/* On IA-64, the buffer size is 16k, not 8k.
 
147
 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
 
148
 * Ditto for the __ia64__ case accordingly.
 
149
 */
 
150
#define YY_BUF_SIZE 32768
 
151
#else
144
152
#define YY_BUF_SIZE 16384
 
153
#endif /* __ia64__ */
145
154
#endif
146
155
 
147
156
/* The state buf must be large enough to hold one state per character in the main buffer.
179
188
 
180
189
#define unput(c) yyunput( c, (yytext_ptr)  )
181
190
 
182
 
/* The following is because we cannot portably get our hands on size_t
183
 
 * (without autoconf's help, which isn't available because we want
184
 
 * flex-generated scanners to compile on their own).
185
 
 * Given that the standard has decreed that size_t exists since 1989,
186
 
 * I guess we can afford to depend on it. Manoj.
187
 
 */
188
 
 
189
191
#ifndef YY_TYPEDEF_YY_SIZE_T
190
192
#define YY_TYPEDEF_YY_SIZE_T
191
193
typedef size_t yy_size_t;
855
857
static void unterminated(const char *, unsigned);
856
858
 
857
859
/* This is for broken old lexes (solaris 10 and hpux) */
858
 
#line 858 "heimdal/lib/asn1/lex.c"
 
860
#line 860 "lex.c"
859
861
 
860
862
#define INITIAL 0
861
863
 
873
875
 
874
876
static int yy_init_globals (void );
875
877
 
 
878
/* Accessor methods to globals.
 
879
   These are made visible to non-reentrant scanners for convenience. */
 
880
 
 
881
int yylex_destroy (void );
 
882
 
 
883
int yyget_debug (void );
 
884
 
 
885
void yyset_debug (int debug_flag  );
 
886
 
 
887
YY_EXTRA_TYPE yyget_extra (void );
 
888
 
 
889
void yyset_extra (YY_EXTRA_TYPE user_defined  );
 
890
 
 
891
FILE *yyget_in (void );
 
892
 
 
893
void yyset_in  (FILE * in_str  );
 
894
 
 
895
FILE *yyget_out (void );
 
896
 
 
897
void yyset_out  (FILE * out_str  );
 
898
 
 
899
int yyget_leng (void );
 
900
 
 
901
char *yyget_text (void );
 
902
 
 
903
int yyget_lineno (void );
 
904
 
 
905
void yyset_lineno (int line_number  );
 
906
 
876
907
/* Macros after this point can all be overridden by user definitions in
877
908
 * section 1.
878
909
 */
907
938
 
908
939
/* Amount of stuff to slurp up with each read. */
909
940
#ifndef YY_READ_BUF_SIZE
 
941
#ifdef __ia64__
 
942
/* On IA-64, the buffer size is 16k, not 8k */
 
943
#define YY_READ_BUF_SIZE 16384
 
944
#else
910
945
#define YY_READ_BUF_SIZE 8192
 
946
#endif /* __ia64__ */
911
947
#endif
912
948
 
913
949
/* Copy whatever the last rule matched to the standard output. */
915
951
/* This used to be an fputs(), but since the string might contain NUL's,
916
952
 * we now use fwrite().
917
953
 */
918
 
#define ECHO fwrite( yytext, yyleng, 1, yyout )
 
954
#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
919
955
#endif
920
956
 
921
957
/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
926
962
        if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
927
963
                { \
928
964
                int c = '*'; \
929
 
                int n; \
 
965
                size_t n; \
930
966
                for ( n = 0; n < max_size && \
931
967
                             (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
932
968
                        buf[n] = (char) c; \
1010
1046
    
1011
1047
#line 68 "lex.l"
1012
1048
 
1013
 
#line 1013 "heimdal/lib/asn1/lex.c"
 
1049
#line 1049 "lex.c"
1014
1050
 
1015
1051
        if ( !(yy_init) )
1016
1052
                {
1635
1671
                          yylval.constant = strtol((const char *)yytext,
1636
1672
                                                   &e, 0);
1637
1673
                          if(e == y)
1638
 
                            error_message("malformed constant (%s)", yytext);
 
1674
                            lex_error_message("malformed constant (%s)", yytext);
1639
1675
                          else
1640
1676
                            return NUMBER;
1641
1677
                        }
1672
1708
case 94:
1673
1709
YY_RULE_SETUP
1674
1710
#line 273 "lex.l"
1675
 
{ error_message("Ignoring char(%c)\n", *yytext); }
 
1711
{ lex_error_message("Ignoring char(%c)\n", *yytext); }
1676
1712
        YY_BREAK
1677
1713
case 95:
1678
1714
YY_RULE_SETUP
1679
1715
#line 274 "lex.l"
1680
1716
ECHO;
1681
1717
        YY_BREAK
1682
 
#line 1682 "heimdal/lib/asn1/lex.c"
 
1718
#line 1718 "lex.c"
1683
1719
case YY_STATE_EOF(INITIAL):
1684
1720
        yyterminate();
1685
1721
 
2437
2473
 
2438
2474
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
2439
2475
 * scan from a @e copy of @a bytes.
2440
 
 * @param bytes the byte buffer to scan
2441
 
 * @param len the number of bytes in the buffer pointed to by @a bytes.
 
2476
 * @param yybytes the byte buffer to scan
 
2477
 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
2442
2478
 * 
2443
2479
 * @return the newly allocated buffer state object.
2444
2480
 */
2690
2726
#endif
2691
2727
 
2692
2728
void
2693
 
error_message (const char *format, ...)
 
2729
lex_error_message (const char *format, ...)
2694
2730
{
2695
2731
    va_list args;
2696
2732
 
2704
2740
static void
2705
2741
unterminated(const char *type, unsigned start_lineno)
2706
2742
{
2707
 
    error_message("unterminated %s, possibly started on line %d\n", type, start_lineno);
 
2743
    lex_error_message("unterminated %s, possibly started on line %d\n", type, start_lineno);
2708
2744
}
2709
2745