Closed Bug 612461 Opened 14 years ago Closed 13 years ago

Should not be able to cd into files

Categories

(Testing :: General, defect)

ARM
Android
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 650110

People

(Reporter: mcote, Unassigned)

Details

Attachments

(2 files)

It seems that it is possible to cd into a file on the Android agent:

$>cd /data/data/org.mozilla.fennec/mozilla/r9scam8i.default/.parentlock
$>cwd
/data/data/org.mozilla.fennec/mozilla/r9scam8i.default/.parentlock
$>ls
##AGENT-WARNING## /data/data/org.mozilla.fennec/mozilla/r9scam8i.default/.parentlock is not a directory

This breaks various parts of the devicemanager, which uses cd to determine what are directories and what are plain files.
Bob implemented the "isdir" command on the Android agent.  This is a patch to devicemanager to expose it and to use it in getDirectory().

Other bonus fixes:
- catFile() function
- in listFiles(), strip trailing slashes from paths, since it confuses the Android agent, and filter empty paths from results
Attachment #491894 - Flags: review?(ctalbert)
Comment on attachment 491894 [details] [diff] [review]
isdir command and various small fixes

This looks good.  Thanks.  We need to check this in.  I think we should run this in staging first with Joel's changes for Talos and then checkin both the talos changes and this in one landing.
Attachment #491894 - Flags: review?(ctalbert) → review+
This is a new sutagent version that allows for callbacks during the update process and implements the isdir command.
Attachment #491990 - Flags: review?(bmoss)
Attachment #491990 - Flags: review?(bmoss)
This has been fixed in bug 650110, marking as dupe.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Component: New Frameworks → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: