rpmExpand returning unterminated string ?

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

 



I'm using FC3-test3 on AMD64 and writing to the C API. I'm using
rpmExpand to determine the location that RPMS should be placed using

  char * rpmdir=NULL;
  rpmdir = rpmExpand("%{_rpmdir}");

Adding 
  %_rpmdir  /demo/rpm/directory

into ~/.rpmmacros gives when printf'ed 

23 /demo/rpm/directorypñÿ¿

Where the 23 is strlen(rpmdir).

Other queries (specifically tested is %{_sourcedir}) return "good" strings.

Any thoughts ?

richard.


-- 
-----------------------------------------------------------------------
richard offer @ gmail                   "Specialization is for insects"

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux