Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/libsmb/libsmb_xattr.c

    r206 r221  
    12741274                                                            ",%s:%lu",
    12751275                                                            attr_strings.create_time_attr,
    1276                                                             create_time);
     1276                                                            (unsigned long) create_time);
    12771277                                        if (!p) {
    12781278                                                errno = ENOMEM;
     
    12841284                                                     ",%s:%lu",
    12851285                                                     attr_strings.create_time_attr,
    1286                                                      create_time);
     1286                                                     (unsigned long) create_time);
    12871287                                }
    12881288                        } else if (StrCaseCmp(name, attr_strings.create_time_attr) == 0) {
    12891289                                if (determine_size) {
    1290                                         p = talloc_asprintf(ctx, "%lu", create_time);
     1290                                        p = talloc_asprintf(ctx, "%lu", (unsigned long) create_time);
    12911291                                        if (!p) {
    12921292                                                errno = ENOMEM;
     
    12961296                                } else {
    12971297                                        n = snprintf(buf, bufsize,
    1298                                                      "%lu", create_time);
     1298                                                     "%lu", (unsigned long) create_time);
    12991299                                }
    13001300                        }
     
    13161316                                                            ",%s:%lu",
    13171317                                                            attr_strings.access_time_attr,
    1318                                                             access_time);
     1318                                                            (unsigned long) access_time);
    13191319                                        if (!p) {
    13201320                                                errno = ENOMEM;
     
    13261326                                                     ",%s:%lu",
    13271327                                                     attr_strings.access_time_attr,
    1328                                                      access_time);
     1328                                                     (unsigned long) access_time);
    13291329                                }
    13301330                        } else if (StrCaseCmp(name, attr_strings.access_time_attr) == 0) {
    13311331                                if (determine_size) {
    1332                                         p = talloc_asprintf(ctx, "%lu", access_time);
     1332                                        p = talloc_asprintf(ctx, "%lu", (unsigned long) access_time);
    13331333                                        if (!p) {
    13341334                                                errno = ENOMEM;
     
    13381338                                } else {
    13391339                                        n = snprintf(buf, bufsize,
    1340                                                      "%lu", access_time);
     1340                                                     "%lu", (unsigned long) access_time);
    13411341                                }
    13421342                        }
     
    13581358                                                            ",%s:%lu",
    13591359                                                            attr_strings.write_time_attr,
    1360                                                             write_time);
     1360                                                            (unsigned long) write_time);
    13611361                                        if (!p) {
    13621362                                                errno = ENOMEM;
     
    13681368                                                     ",%s:%lu",
    13691369                                                     attr_strings.write_time_attr,
    1370                                                      write_time);
     1370                                                     (unsigned long) write_time);
    13711371                                }
    13721372                        } else if (StrCaseCmp(name, attr_strings.write_time_attr) == 0) {
    13731373                                if (determine_size) {
    1374                                         p = talloc_asprintf(ctx, "%lu", write_time);
     1374                                        p = talloc_asprintf(ctx, "%lu", (unsigned long) write_time);
    13751375                                        if (!p) {
    13761376                                                errno = ENOMEM;
     
    13801380                                } else {
    13811381                                        n = snprintf(buf, bufsize,
    1382                                                      "%lu", write_time);
     1382                                                     "%lu", (unsigned long) write_time);
    13831383                                }
    13841384                        }
     
    14001400                                                            ",%s:%lu",
    14011401                                                            attr_strings.change_time_attr,
    1402                                                             change_time);
     1402                                                            (unsigned long) change_time);
    14031403                                        if (!p) {
    14041404                                                errno = ENOMEM;
     
    14101410                                                     ",%s:%lu",
    14111411                                                     attr_strings.change_time_attr,
    1412                                                      change_time);
     1412                                                     (unsigned long) change_time);
    14131413                                }
    14141414                        } else if (StrCaseCmp(name, attr_strings.change_time_attr) == 0) {
    14151415                                if (determine_size) {
    1416                                         p = talloc_asprintf(ctx, "%lu", change_time);
     1416                                        p = talloc_asprintf(ctx, "%lu", (unsigned long) change_time);
    14171417                                        if (!p) {
    14181418                                                errno = ENOMEM;
     
    14221422                                } else {
    14231423                                        n = snprintf(buf, bufsize,
    1424                                                      "%lu", change_time);
     1424                                                     "%lu", (unsigned long) change_time);
    14251425                                }
    14261426                        }
     
    15021502         POLICY_HND *pol,
    15031503         const char *filename,
    1504          const char *the_acl,
     1504         char *the_acl,
    15051505         int mode,
    15061506         int flags)
     
    15321532                }
    15331533               
    1534                 sd = sec_desc_parse(ctx, ipc_cli, pol, numeric,
    1535                                     CONST_DISCARD(char *, the_acl));
     1534                sd = sec_desc_parse(ctx, ipc_cli, pol, numeric, the_acl);
    15361535               
    15371536                if (!sd) {
     
    21152114               
    21162115                /* Yup. */
     2116                char *filename = (char *) name;
    21172117                ret = cacl_get(context, talloc_tos(), srv,
    21182118                               ipc_srv == NULL ? NULL : ipc_srv->cli,
    21192119                               &ipc_srv->pol, path,
    2120                                CONST_DISCARD(char *, name),
    2121                                CONST_DISCARD(char *, value), size);
     2120                               filename,
     2121                               CONST_DISCARD(char *, value),
     2122                               size);
    21222123                if (ret < 0 && errno == 0) {
    21232124                        errno = SMBC_errno(context, srv->cli);
     
    22382239                ret = cacl_set(talloc_tos(), srv->cli,
    22392240                               ipc_srv->cli, &ipc_srv->pol, path,
    2240                                name + 19, SMBC_XATTR_MODE_REMOVE, 0);
     2241                               CONST_DISCARD(char *, name) + 19,
     2242                               SMBC_XATTR_MODE_REMOVE, 0);
    22412243                TALLOC_FREE(frame);
    22422244                return ret;
Note: See TracChangeset for help on using the changeset viewer.