about the strtok in the process of creating swift acl policy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Is the strtok safe in this case ? why not strtok_r ?

static int parse_list(string& uid_list, vector<string>& uids)
{
  ...
  const char *p = strtok(s, " ,");
  while (p) {
    ...
    p = strtok(NULL, " ,");
  }
  ...
}

bool RGWAccessControlPolicy_SWIFT::create(RGWRados *store, string& id, string& name, string& read_list, string& write_list)
{
  ...
    int r = parse_list(read_list, uids);
  ...
}

Thanks

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux